Fix FILE decoding when --file option is set with a full path.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 26 Jun 2017 08:34:00 +0000 (10:34 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 26 Jun 2017 08:34:00 +0000 (10:34 +0200)
scripts/xds-utils/install-agl-sdks.sh

index 8c0ee84..9fbacbb 100755 (executable)
@@ -80,6 +80,7 @@ elif [ ! -f $FILE ]; then
     exit 1
 else
     DIR=$(cd $(dirname $FILE); pwd)
+    FILE=$(basename $FILE)
     SDK_FILE=${DIR}/${FILE}
 fi