From fc7a6533e733862d71443e45172ddc6f61bdb605 Mon Sep 17 00:00:00 2001 From: Michael Serajnik Date: Fri, 30 Jul 2021 00:45:34 +0200 Subject: [PATCH] Deal with potential spaces in repository path --- 00-create-database-backup.sh | 2 +- 00-create-or-reset-config-files.sh | 2 +- 00-extract-client-data.sh | 2 +- 00-install.sh | 2 +- 00-start.sh | 2 +- 00-stop.sh | 2 +- 00-update-including-world-database-import.sh | 2 +- 00-update.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/00-create-database-backup.sh b/00-create-database-backup.sh index a5847ec..06e3c6d 100755 --- a/00-create-database-backup.sh +++ b/00-create-database-backup.sh @@ -20,7 +20,7 @@ get_script_path() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } -repository_path=$(dirname $(get_script_path "$0")) +repository_path=$(dirname "$(get_script_path "$0")") cd "$repository_path" diff --git a/00-create-or-reset-config-files.sh b/00-create-or-reset-config-files.sh index 7d5f7c3..7137839 100755 --- a/00-create-or-reset-config-files.sh +++ b/00-create-or-reset-config-files.sh @@ -20,7 +20,7 @@ get_script_path() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } -repository_path=$(dirname $(get_script_path "$0")) +repository_path=$(dirname "$(get_script_path "$0")") rm -f "$repository_path/config/*.conf" cp "$repository_path/config/mangosd.conf.example" \ diff --git a/00-extract-client-data.sh b/00-extract-client-data.sh index 7617aef..e9ead56 100755 --- a/00-extract-client-data.sh +++ b/00-extract-client-data.sh @@ -32,7 +32,7 @@ get_script_path() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } -repository_path=$(dirname $(get_script_path "$0")) +repository_path=$(dirname "$(get_script_path "$0")") cd "$repository_path" diff --git a/00-install.sh b/00-install.sh index 4baebf0..9d7a154 100755 --- a/00-install.sh +++ b/00-install.sh @@ -32,7 +32,7 @@ get_script_path() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } -repository_path=$(dirname $(get_script_path "$0")) +repository_path=$(dirname "$(get_script_path "$0")") cd "$repository_path" diff --git a/00-start.sh b/00-start.sh index 90df3f9..d8776f2 100755 --- a/00-start.sh +++ b/00-start.sh @@ -20,7 +20,7 @@ get_script_path() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } -repository_path=$(dirname $(get_script_path "$0")) +repository_path=$(dirname "$(get_script_path "$0")") cd "$repository_path" diff --git a/00-stop.sh b/00-stop.sh index a1dc9ff..4255068 100755 --- a/00-stop.sh +++ b/00-stop.sh @@ -20,7 +20,7 @@ get_script_path() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } -repository_path=$(dirname $(get_script_path "$0")) +repository_path=$(dirname "$(get_script_path "$0")") cd "$repository_path" diff --git a/00-update-including-world-database-import.sh b/00-update-including-world-database-import.sh index d422b89..ee9e505 100755 --- a/00-update-including-world-database-import.sh +++ b/00-update-including-world-database-import.sh @@ -32,7 +32,7 @@ get_script_path() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } -repository_path=$(dirname $(get_script_path "$0")) +repository_path=$(dirname "$(get_script_path "$0")") cd "$repository_path" diff --git a/00-update.sh b/00-update.sh index 7318da3..2b896ad 100755 --- a/00-update.sh +++ b/00-update.sh @@ -32,7 +32,7 @@ get_script_path() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } -repository_path=$(dirname $(get_script_path "$0")) +repository_path=$(dirname "$(get_script_path "$0")") cd "$repository_path" -- 2.34.5