setupvars and demos: Fix getting script dir on macOS 10.15 with with default zsh shell (#5094)

This commit is contained in:
Alexey Suhov
2021-04-02 21:37:21 +03:00
committed by GitHub
parent ead6040b21
commit 6a16b70e0e
8 changed files with 8 additions and 8 deletions
@@ -35,7 +35,7 @@ for ((i=1;i <= $#;i++)) {
esac
}
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]-$0}" )" && pwd )"
if [[ -f /etc/centos-release ]]; then
DISTRO="centos"