diff --git a/lgsm/functions/command_skeleton.sh b/lgsm/functions/command_skeleton.sh index d9ab4bbe3..cd143e661 100644 --- a/lgsm/functions/command_skeleton.sh +++ b/lgsm/functions/command_skeleton.sh @@ -5,8 +5,16 @@ # Description: Creates an copy of a game servers directorys. -fn_print_dots "" +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 +if [ $? != 0 ]; then + fn_print_fail_nl "Creating skeleton directory" + fn_script_log_fatal "Creating skeleton directory" + core_exit.sh +else + fn_print_ok_nl "Creating skeleton directory" + fn_script_log_pass "Creating skeleton directory" +fi