Skip to content

Commit

Permalink
Check curl result
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonghyunCho committed Aug 23, 2024
1 parent 434df0a commit 558b1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workload/scripts/workload-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function install_tizenworkload() {
# Check latest version of manifest.
if [[ "$MANIFEST_VERSION" == "<latest>" ]]; then
MANIFEST_VERSION=$(curl -s https://api.nuget.org/v3-flatcontainer/$MANIFEST_NAME/index.json | grep \" | tail -n 1 | tr -d '\r' | xargs)
if [ ! "$MANIFEST_VERSION" ]; then
if [ -n "$MANIFEST_VERSION" ] && echo "$MANIFEST_VERSION" | grep -q "BlobNotFound"; then
MANIFEST_VERSION=$(getLatestVersion "$MANIFEST_NAME")
if [[ -n $MANIFEST_VERSION ]]; then
echo "Return cached latest version: $MANIFEST_VERSION"
Expand Down

0 comments on commit 558b1fa

Please sign in to comment.