The ROOT directory is the subdirectory that contains this script - currently common/scripts. The envs and docs subdirectories are created in the actual root directory of this repository, two levels above common/scripts. This happens because of this part of the code:
ROOT=$(get_script_dir)
cd "$ROOT/../.."
Alternatively, you can change the above code to something like:
ROOT=$(get_script_dir)
ROOT=`dirname "$ROOT"`
ROOT=`dirname "$ROOT"`
cd "$ROOT"
The
ROOT
directory is the subdirectory that contains this script - currentlycommon/scripts
. Theenvs
anddocs
subdirectories are created in the actual root directory of this repository, two levels abovecommon/scripts
. This happens because of this part of the code:Alternatively, you can change the above code to something like:
Fixes #41.