Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit with Error when archive file link is null #402

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading