summaryrefslogtreecommitdiffstats
path: root/scripts/xds-utils/install-agl-sdks.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/xds-utils/install-agl-sdks.sh')
-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; }