~mser/vmangos-docker

fc7a6533e733862d71443e45172ddc6f61bdb605 — Michael Serajnik 4 months ago 48065c3
Deal with potential spaces in repository path
M 00-create-database-backup.sh => 00-create-database-backup.sh +1 -1
@@ 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"


M 00-create-or-reset-config-files.sh => 00-create-or-reset-config-files.sh +1 -1
@@ 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" \

M 00-extract-client-data.sh => 00-extract-client-data.sh +1 -1
@@ 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"


M 00-install.sh => 00-install.sh +1 -1
@@ 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"


M 00-start.sh => 00-start.sh +1 -1
@@ 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"


M 00-stop.sh => 00-stop.sh +1 -1
@@ 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"


M 00-update-including-world-database-import.sh => 00-update-including-world-database-import.sh +1 -1
@@ 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"


M 00-update.sh => 00-update.sh +1 -1
@@ 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"