This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| export LANG_VAR_NOT_SET="Variable {var} is not set." | |
| export LANG_FROM_TYPE_NOT_RECOGNIZED="from type {type} not recognized." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| export INFO_ENABLED=true | |
| export DEBUG_ENABLED=true | |
| export TMP_DIR="/tmp/commander" | |
| if [[ -d "${TMP_DIR}" ]]; then | |
| rm -rf "${TMP_DIR}" | |
| fi | |
| mkdir -p "${TMP_DIR}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| SOURCE=${BASH_SOURCE[0]} | |
| while [ -L "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
| DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd ) | |
| SOURCE=$(readlink "$SOURCE") | |
| [[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | |
| done | |
| DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd ) |
OlderNewer