Skip to content

Commit

Permalink
Exit with Error when b3 link is null
Browse files Browse the repository at this point in the history
Signed-off-by: AbdullahAlShaad <abdullah.alshaad@appscode.com>
  • Loading branch information
AbdullahAlShaad committed Nov 8, 2024
1 parent 71698b7 commit 658037f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ HOME="/root"
cd $HOME

export DEBIAN_FRONTEND=noninteractive
apt-get -y update || true
apt upgrade -y || true
set -xeo pipefail
exec >/root/userdata.log 2>&1

Expand Down Expand Up @@ -183,7 +185,7 @@ az_cli() {
}
}')
link=$(echo ${resp} | jq -r '.link')
if [ ${link} == "null" ]; then exit ; fi
if [ ${link} == "null" ]; then exit 1 ; fi

mkdir new
cd new
Expand Down

0 comments on commit 658037f

Please sign in to comment.