Fix invalid file parameter.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 22 Jun 2017 19:43:43 +0000 (21:43 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 22 Jun 2017 19:43:43 +0000 (21:43 +0200)
scripts/xds-utils/install-agl-sdks.sh

index 7e4eb76..36849f9 100755 (executable)
@@ -107,8 +107,8 @@ if [ ! -f ${SDK_FILE} ]; then
 fi
 
 # Retreive default install dir to extract version
-offset=$(grep -na -m1 "^MARKER:$" $FILE | cut -d':' -f1)
-eval $(head -n $offset $FILE | grep ^DEFAULT_INSTALL_DIR= )
+offset=$(grep -na -m1 "^MARKER:$" ${SDK_FILE} | cut -d':' -f1)
+eval $(head -n $offset ${SDK_FILE} | grep ^DEFAULT_INSTALL_DIR= )
 VERSION=$(basename $DEFAULT_INSTALL_DIR)
 
 [ "$PROFILE" = "" ] && { echo "PROFILE is not set"; exit 1; }