install.sh minor quoting changes

This commit is contained in:
Matthias Wirth
2024-04-25 16:18:20 +02:00
parent 4cd5c3f6b9
commit 64306b7da1

View File

@@ -120,7 +120,7 @@ function revision() {
if ! { [[ "$1" == "test" ]] && cd "$gpath/git-db"; }; then
DB_VERSION_NEW=$(curl --silent --show-error "https://raw.githubusercontent.com/wiedehopf/tar1090-db/master/version")
if [[ "$(cat $gpath/git-db/version 2>/dev/null)" != "$DB_VERSION_NEW" ]]; then
if [[ "$(cat "$gpath/git-db/version" 2>/dev/null)" != "$DB_VERSION_NEW" ]]; then
getGIT "$db_repo" "master" "$gpath/git-db" || true
fi
fi
@@ -147,7 +147,7 @@ if [[ "$1" == "test" ]] || [[ -n "$git_source" ]]; then
TAR_VERSION="$(date +%s)_${RANDOM}${RANDOM}"
else
VERSION_NEW=$(curl --silent --show-error "https://raw.githubusercontent.com/wiedehopf/tar1090/master/version")
if [[ "$(cat $gpath/git/version 2>/dev/null)" != "$VERSION_NEW" ]]; then
if [[ "$(cat "$gpath/git/version" 2>/dev/null)" != "$VERSION_NEW" ]]; then
if ! getGIT "$repo" "master" "$gpath/git"; then
echo "Unable to download files, exiting! (Maybe try again?)"
exit 1