From 9ca631fc6dab1a5f8fd21c9ca72b4c1548adca76 Mon Sep 17 00:00:00 2001 From: cclecle Date: Sun, 8 May 2022 14:32:44 +0200 Subject: [PATCH] update Run.sh: convert spaces to tabs, fix case calls --- Run.sh | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/Run.sh b/Run.sh index 1114b37..d290229 100644 --- a/Run.sh +++ b/Run.sh @@ -5,9 +5,9 @@ OUTPUT_DIR="$2" CFG_FILE="$3" function install() { - cp $SCRIPT_DIR/Help $OUTPUT_DIR/Help -R - cp $SCRIPT_DIR/System $OUTPUT_DIR/System -R - cp $SCRIPT_DIR/Textures $OUTPUT_DIR/Textures -R + cp $SCRIPT_DIR/Help $OUTPUT_DIR/Help -R + cp $SCRIPT_DIR/System $OUTPUT_DIR/System -R + cp $SCRIPT_DIR/Textures $OUTPUT_DIR/Textures -R } function enable() { @@ -26,25 +26,26 @@ function show_help() { ### Check if a directory does not exist ### if [ ! -d $OUTPUT_DIR ] then - echo "incorrect " + echo "incorrect " show_help - exit 9999 # die with error code 9999 + exit 9999 # die with error code 9999 fi case "$1" in - 'install') - start - ;; - 'enable') - stop - ;; - 'disable') - start - ;; - *) - show_help - exit 1 - ;; + 'install') + install + ;; + 'enable') + disable + enable + ;; + 'disable') + disable + ;; + *) + show_help + exit 1 + ;; esac exit 0 \ No newline at end of file