update Run.sh: convert spaces to tabs, fix case calls

This commit is contained in:
cclecle
2022-05-08 14:32:44 +02:00
parent cc09b42579
commit 9ca631fc6d

37
Run.sh
View File

@@ -5,9 +5,9 @@ OUTPUT_DIR="$2"
CFG_FILE="$3" CFG_FILE="$3"
function install() { function install() {
cp $SCRIPT_DIR/Help $OUTPUT_DIR/Help -R cp $SCRIPT_DIR/Help $OUTPUT_DIR/Help -R
cp $SCRIPT_DIR/System $OUTPUT_DIR/System -R cp $SCRIPT_DIR/System $OUTPUT_DIR/System -R
cp $SCRIPT_DIR/Textures $OUTPUT_DIR/Textures -R cp $SCRIPT_DIR/Textures $OUTPUT_DIR/Textures -R
} }
function enable() { function enable() {
@@ -26,25 +26,26 @@ function show_help() {
### Check if a directory does not exist ### ### Check if a directory does not exist ###
if [ ! -d $OUTPUT_DIR ] if [ ! -d $OUTPUT_DIR ]
then then
echo "incorrect <UT99_INSTALL_DIR>" echo "incorrect <UT99_INSTALL_DIR>"
show_help show_help
exit 9999 # die with error code 9999 exit 9999 # die with error code 9999
fi fi
case "$1" in case "$1" in
'install') 'install')
start install
;; ;;
'enable') 'enable')
stop disable
;; enable
'disable') ;;
start 'disable')
;; disable
*) ;;
show_help *)
exit 1 show_help
;; exit 1
;;
esac esac
exit 0 exit 0