diff options
Diffstat (limited to 'scripts/sdks/agl/add')
-rwxr-xr-x | scripts/sdks/agl/add | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/sdks/agl/add b/scripts/sdks/agl/add index 839d647..f602fa9 100755 --- a/scripts/sdks/agl/add +++ b/scripts/sdks/agl/add @@ -93,6 +93,8 @@ fi # Compute uuid when needed if [ "$UUID" = "" ] && [ "$URL" != "" ]; then UUID=$(echo "$URL" | md5sum |cut -d' ' -f1) +elif [ "$SDK_FILE" != "" ]; then + UUID=$(echo $(basename $SDK_FILE) | md5sum |cut -d' ' -f1) else echo "UUID value must be specify using --uuid option." exit 1 |