Merge pull request #1926 from gaelicWizard/basenamed

Use parameter substitution instead of `dirname`/`basename`, where safe to do so
This commit is contained in:
Noah Gorny
2021-09-18 18:26:55 +03:00
committed by GitHub
7 changed files with 24 additions and 22 deletions

View File

@@ -184,7 +184,7 @@ if [[ -n "${no_modify_config}" && -n "${append_to_config}" ]]; then
exit 1
fi
BASH_IT="$(cd "$(dirname "$0")" && pwd)"
BASH_IT="$(cd "${BASH_SOURCE%/*}" && pwd)"
case $OSTYPE in
darwin*)