From 558b1faa8c2e605ce2c15fb914bad1bb1614305c Mon Sep 17 00:00:00 2001 From: Jay Cho Date: Sat, 24 Aug 2024 00:24:23 +0900 Subject: [PATCH] Check curl result --- workload/scripts/workload-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workload/scripts/workload-install.sh b/workload/scripts/workload-install.sh index cfdd914..eaa3f5b 100755 --- a/workload/scripts/workload-install.sh +++ b/workload/scripts/workload-install.sh @@ -187,7 +187,7 @@ function install_tizenworkload() { # Check latest version of manifest. if [[ "$MANIFEST_VERSION" == "" ]]; 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"