aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-05-27 23:57:22 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-05-27 23:57:22 +0200
commitf3d6a58dcbf362c0aad62149337811e4c1cf13dc (patch)
tree534ac47385c7d7b5ee51761b5457f07871264c39
parentf2e43844bf47557b937c042c4e08839de3bafeed (diff)
downloadltask-f3d6a58dcbf362c0aad62149337811e4c1cf13dc.tar.gz
use export
-rwxr-xr-xltask10
1 files changed, 5 insertions, 5 deletions
diff --git a/ltask b/ltask
index 05300b1..52725ac 100755
--- a/ltask
+++ b/ltask
@@ -27,10 +27,10 @@ unset DIRNAME
readonly BASEDIR=$(pwd)
-readonly TASK_DIR=$BASEDIR/tasks
-readonly ASSET_DIR=$BASEDIR/assets
-readonly TARGET_DIR=$BASEDIR/targets
-readonly TOOL_DIR=$BASEDIR/tools
+export readonly TASK_DIR=$BASEDIR/tasks
+export readonly ASSET_DIR=$BASEDIR/assets
+export readonly TARGET_DIR=$BASEDIR/targets
+export readonly TOOL_DIR=$BASEDIR/tools
TASK=
TARGET=
@@ -38,7 +38,7 @@ TARGET=
HOSTS=()
#block run when sourcing task
-HOSTMODE="yes"
+export readonly HOSTMODE="yes"
function parse_args() {
for (( i=0; i < $ARGC;i++ )); do