use __cdist_abs_mydir instead of which

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-20 00:31:34 +01:00
parent 9aa60b3b1d
commit 0d4f2a6c4b

View file

@ -26,7 +26,7 @@ set -eu
__cdist_output_dir="$1"; shift __cdist_output_dir="$1"; shift
__cdist_type_emulator="$(which cdist-type-emulator)" __cdist_type_emulator="$__cdist_abs_mydir/cdist-type-emulator"
if [ ! -d "${__cdist_type_dir}" ]; then if [ ! -d "${__cdist_type_dir}" ]; then
__cdist_exit_err "$__cdist_type_dir must exist and contain available types" __cdist_exit_err "$__cdist_type_dir must exist and contain available types"