Skip to content

Commit

Permalink
simplex-servers-update: ignore empty variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shumvgolove committed Jan 31, 2025
1 parent 91da5df commit 99c02bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/main/simplex-servers-update
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ erase_lines() {
}

update_scripts() {
set +u

if [ -z "$SCRIPTS_DONE" ]; then
set -u

curl --proto '=https' --tlsv1.2 -sSf -L "$scripts_update" -o "$path_tmp_bin_update" && chmod +x "$path_tmp_bin_update"
curl --proto '=https' --tlsv1.2 -sSf -L "$scripts_uninstall" -o "$path_tmp_bin_uninstall" && chmod +x "$path_tmp_bin_uninstall"
curl --proto '=https' --tlsv1.2 -sSf -L "$scripts_stopscript" -o "$path_tmp_bin_stopscript" && chmod +x "$path_tmp_bin_stopscript"
Expand Down Expand Up @@ -163,6 +167,8 @@ update_scripts() {
else
printf "${GRN}Done!${NC}\n"
fi

set -u
}

update_systemd() {
Expand Down

0 comments on commit 99c02bc

Please sign in to comment.