Jump to content

Bash (Unix shell): Difference between revisions

Line 150: Line 150:


DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
cd "${DIR}" || exit
</syntaxhighlight>
</syntaxhighlight>