Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek committed Jun 26, 2024
1 parent 7c97cdd commit 960f4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oblt-cli/setup/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi

OBLT_CLI_VERSION_FILE=${OBLT_CLI_VERSION_FILE:-}

if [[ -f "${OBLT_CLI_VERSION_FILE}" ]]; then
if [[ -n "${OBLT_CLI_VERSION_FILE}" && -f "${OBLT_CLI_VERSION_FILE}" ]]; then
OBLT_CLI_VERSION=$(< OBLT_CLI_VERSION_FILE tr -d '[:space:]')
else
echo "[ERROR] ${OBLT_CLI_VERSION_FILE} file not found."
Expand Down

0 comments on commit 960f4bd

Please sign in to comment.