Skip to content

Commit

Permalink
Makes global variables readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
TjWallas committed Sep 12, 2019
1 parent 3f52909 commit 69a9072
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions {{cookiecutter.dir_name}}/helpers_safe_bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ _get_abs_script_path() {
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
FILENAME=$(basename "$0") # This does not consider if the script was a symlink
ABS_SCRIPT_PATH="$DIR/$FILENAME"
readonly SOURCE
readonly DIR
readonly ABS_SCRIPT_PATH
readonly FILENAME
}


Expand Down

0 comments on commit 69a9072

Please sign in to comment.