From acdff5a1bc9028bd79eeba16d507ea4c652b4185 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 22 Jun 2017 21:43:43 +0200 Subject: Fix invalid file parameter. --- scripts/xds-utils/install-agl-sdks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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; } -- cgit 1.2.3-korg