Skip to content

Commit

Permalink
Update remote_website_install.sh: shellcheck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Oct 20, 2024
1 parent e8c2a39 commit 5f4897b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion remote_website_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function display_box()
local BACK_TITLE="${2}"
local DIALOG_TITLE="${3}"
local MORE_ARGS="${5}"
# shellcheck disable=SC2086
dialog \
--colors \
--backtitle "${BACK_TITLE}" \
Expand Down Expand Up @@ -459,7 +460,7 @@ function check_if_files_exist()
HTTP_STATUS="$( curl -o /dev/null --silent --write-out "%{http_code}" "$url" )"

local PRE_MSG="File ${FILE} ${url}"
if [ ${HTTP_STATUS} == "200" ]; then
if [[ ${HTTP_STATUS} == "200" ]] ; then
show_debug_message "${PRE_MSG} exists on the remote server"
RESULT=0
else
Expand Down

0 comments on commit 5f4897b

Please sign in to comment.