Skip to content

Commit

Permalink
Improve "if" syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilionus committed Jun 25, 2024
1 parent 9c74d82 commit ec9a6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ echo "Web wrapper for $NAME."

TMP_DIR=$( mktemp -d )

if [ ! -d "$TMP_DIR" ]; then
if [[ ! -d $TMP_DIR ]]; then
echo "[!] Failed to initialize temporary directory."
exit 1
fi
Expand All @@ -47,7 +47,7 @@ trap 'rm -rf -- "$TMP_DIR" && echo "[+] Temporary directory $TMP_DIR wiped."' EX
cd "$TMP_DIR"

download_url=""
if [ -z "$VERSION" ]; then
if [[ -z $VERSION ]]; then
echo "[+] Preparing the latest release."

download_url=$(curl $CURL_FLAGS "$DOWNLOAD_LATEST_URL" \
Expand Down

0 comments on commit ec9a6cf

Please sign in to comment.