From ad18bd5e52feaae4df5c4647138eddfa42e14e85 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 29 Dec 2020 16:45:59 +0000 Subject: [PATCH] shellcheck --- lgsm/functions/command_skeleton.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_skeleton.sh b/lgsm/functions/command_skeleton.sh index b5b158567..cb1136915 100644 --- a/lgsm/functions/command_skeleton.sh +++ b/lgsm/functions/command_skeleton.sh @@ -9,8 +9,9 @@ fn_print_dots "Creating skeleton directory" check.sh # Find all directorys and create them in the skel directory -find ${rootdir} -type d -not \( -path ./skel -prune \) | cpio -pdvm skel 2>/dev/null -if [ $? != 0 ]; then +find "${rootdir}" -type d -not \( -path ./skel -prune \) | cpio -pdvm skel 2>/dev/null +exitcode=$? +if [ "${exitcode}" != 0 ]; then fn_print_fail_nl "Creating skeleton directory" fn_script_log_fatal "Creating skeleton directory" else