From a93832c2e3058c55e183c487dde595bd42238bb0 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 27 Jun 2018 15:52:14 +0200 Subject: Fixed sdk from local file installation Rework sdk uuid management because previous code prevented to install local sdk using following command: xds-cli sdks install --file $HOME/xds-workspace/my_local_sdk.sh Change-Id: I20bac8a76d32b005a6775e936756c96048651766 Signed-off-by: Sebastien Douheret --- scripts/sdks/agl/add | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/sdks/agl/add') 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 -- cgit 1.2.3-korg