diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index 04736581fe7c733562ce8f43159f43b5b9b4a5d1..d3bd23682e18054591348db7c8f1d623d2c4c077 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -40,8 +40,6 @@ pkg=1 inno=0 dmg=0 -inst_dir=${inst_dir:-/usr/local} - # Get the OS we're running under, normalized to names that can be used # to fetch the nwjs binaries below @@ -125,10 +123,10 @@ do case $Option in a) addon=1;; b) deb=1 - inst_dir=/usr;; + inst_dir=${inst_dir:-/usr};; B) deb=2 - inst_dir=/usr;; + inst_dir=${inst_dir:-/usr};; c) core=1;; @@ -166,6 +164,8 @@ do case $Option in esac done +inst_dir=${inst_dir:-/usr/local} + export TAR_EM_UP_PREFIX=$inst_dir cd ../