From 61c2261494e455a8b1230b757946b597b5a660ae Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Mon, 18 Jul 2022 11:19:31 +0000 Subject: [PATCH] tasyagle-install: Add env var for setting the install dir --- build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index c673269..764ca6c 100755 --- a/build.sh +++ b/build.sh @@ -45,8 +45,16 @@ popd # 'Install' -mkdir -p install -installDir="`pwd`/install" +if [ -z $installDir ]; +then + mkdir -p install + installDir="`pwd`/install" + echo "Not provided install dir, setting to: $installDir" +else + echo "Using provided install dir: $installDir" +fi + + mkdir -p ${installDir}/bin mkdir -p ${installDir}/share/tasyag/etc -- 2.30.2