diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-05-27 23:57:22 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-05-27 23:57:22 +0200 |
commit | f3d6a58dcbf362c0aad62149337811e4c1cf13dc (patch) | |
tree | 534ac47385c7d7b5ee51761b5457f07871264c39 | |
parent | f2e43844bf47557b937c042c4e08839de3bafeed (diff) | |
download | ltask-f3d6a58dcbf362c0aad62149337811e4c1cf13dc.tar.gz |
use export
-rwxr-xr-x | ltask | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |