From dea72860f9b41242d9c903d3e576a1358e459d49 Mon Sep 17 00:00:00 2001 From: jimfly01 Date: Mon, 19 Nov 2018 13:42:45 +0000 Subject: IVGCVSW-2115: Fix for unset USERNAME * When running the script standalone USERNAME can be unset causing failure Change-Id: Idb1752117c319c8946426efe8882f03034b2bbbf --- scripts/get_compute_library.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/get_compute_library.sh b/scripts/get_compute_library.sh index 8d6fb2aaf3..6385011780 100755 --- a/scripts/get_compute_library.sh +++ b/scripts/get_compute_library.sh @@ -46,6 +46,9 @@ done DIR="$( cd -P "$( dirname "$SRC" )" >/dev/null && pwd )" pushd ${DIR} > /dev/null cd ../.. +if [ -z "$USERNAME" ]; then + USERNAME=$USER +fi if [ -z "$GITHUB_USERNAME" ]; then GITHUB_USERNAME=$USERNAME echo "setting GITHUB_USERNAME: ${GITHUB_USERNAME} use -g command line option to change" -- cgit v1.2.1