aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-22 21:43:43 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-22 21:43:43 +0200
commitacdff5a1bc9028bd79eeba16d507ea4c652b4185 (patch)
treece4e4a3314ad7d25ddf05ef92f74fe499a1dd411
parent43cdcfa2e6ea5583428deaee0ef78a551597952b (diff)
Fix invalid file parameter.
-rwxr-xr-xscripts/xds-utils/install-agl-sdks.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/xds-utils/install-agl-sdks.sh b/scripts/xds-utils/install-agl-sdks.sh
index 7e4eb76..36849f9 100755
--- a/scripts/xds-utils/install-agl-sdks.sh
+++ b/scripts/xds-utils/install-agl-sdks.sh
@@ -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; }