diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-22 21:43:43 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-22 21:43:43 +0200 |
commit | acdff5a1bc9028bd79eeba16d507ea4c652b4185 (patch) | |
tree | ce4e4a3314ad7d25ddf05ef92f74fe499a1dd411 | |
parent | 43cdcfa2e6ea5583428deaee0ef78a551597952b (diff) |
Fix invalid file parameter.
-rwxr-xr-x | scripts/xds-utils/install-agl-sdks.sh | 4 |
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; } |