From 8760579c7b7c5dc11387eab534f7dd4b7b60bd5f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 25 Feb 2011 18:37:14 +0100 Subject: [PATCH] -x test similar as the others Signed-off-by: Nico Schottelius --- bin/cdist-manifest-run | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/cdist-manifest-run b/bin/cdist-manifest-run index a24144b8..f236f199 100755 --- a/bin/cdist-manifest-run +++ b/bin/cdist-manifest-run @@ -43,10 +43,7 @@ cdist-type-build-emulation || __cdist_exit_err "Failed to build type emulation b PATH="${__cdist_out_type_bin_dir}:$PATH" # Force -x, so the user is aware the file is executed -if [ ! -x "${__cdist_manifest}" ]; then - __cdist_exit_err "${__cdist_manifest} needs to be executable." -fi - +[ -x "${__cdist_manifest}" ] || __cdist_exit_err "${__cdist_manifest} needs to be executable." mkdir -p "${__cdist_output_dir}" || __cdist_exit_err "Cannot create output dir ${__cdist_output_dir}" cd "$__cdist_work_dir" || __cdist_exit_err "Cannot change to work dir \"$__cdist_work_dir\"."