From 997e013a9789e612f1fd35eed9043605ee9dac5d Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Sun, 15 Sep 2024 10:23:54 +0200 Subject: [PATCH] [arkdep] Code cleanup --- arkdep | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arkdep b/arkdep index 8b3a85a..6f6af2d 100755 --- a/arkdep +++ b/arkdep @@ -832,14 +832,14 @@ deploy () { # If latest is requested grab database and get first line printf '\e[1;34m-->\e[0m\e[1m Downloading database\e[0m\n' if [[ $deploy_version == 'latest' ]]; then - declare curl_data=($(curl -sf "${repo_url}/${deploy_target}/$database_name" || printf 'ERROR')) + declare curl_data=($(curl -sf "$repo_url/$deploy_target/$database_name" || printf 'ERROR')) [[ $curl_data == 'ERROR' ]] && cleanup_and_quit 'Failed to download database file' declare -r database_hit=${curl_data[0]} elif [[ $deploy_target != 'cache' ]]; then # Only return first hit - declare curl_data=($(curl -sf "${repo_url}/${deploy_target}/$database_name" || printf 'ERROR')) + declare curl_data=($(curl -sf "$repo_url/$deploy_target/$database_name" || printf 'ERROR')) [[ $curl_data == 'ERROR' ]] && cleanup_and_quit 'Failed to download database file' @@ -1179,7 +1179,7 @@ deploy () { fi # Add to database - printf '\e[1;34m-->\e[0m\e[1m Updating database\e[0m\n' + printf '\e[1;34m-->\e[0m\e[1m Updating deployment tracker\e[0m\n' printf "${data[0]}\n$(cat $(readlink -m $arkdep_dir/tracker))" | tee $arkdep_dir/tracker_tmp mv $arkdep_dir/tracker_tmp $arkdep_dir/tracker