setupvars and demos: Fix getting script dir on macOS 10.15 with with default zsh shell (#5094)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user