aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sdks/agl/get-sdk-info
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sdks/agl/get-sdk-info')
-rwxr-xr-xscripts/sdks/agl/get-sdk-info3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/sdks/agl/get-sdk-info b/scripts/sdks/agl/get-sdk-info
index c28f2e4..485d5fe 100755
--- a/scripts/sdks/agl/get-sdk-info
+++ b/scripts/sdks/agl/get-sdk-info
@@ -131,6 +131,8 @@ if [ "${UUID}" = "" ]; then
UUID="basename ${curInstDir}"
elif [ "$URL" != "" ]; then
UUID=$(echo "$URL" | md5sum |cut -d' ' -f1)
+ elif [ "$filename" != "" ]; then
+ UUID=$(echo $(basename $filename) | md5sum |cut -d' ' -f1)
else
echo "UUID value must be specify using --uuid option."
exit 1
@@ -147,6 +149,7 @@ fi
read -r -d '' res <<- EndOfMessage
{
"name": "${profile}_${arch}_${version}",
+ "uuid": "${UUID}",
"description": "AGL SDK ${arch} (version ${version})",
"profile": "${profile}",
"version": "${version}",