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

This commit is contained in:
Alexey Suhov authored and GitHub committed 2021-04-02 21:37:21 +03:00
1 parent ead6040b21
commit 6a16b70e0e
8 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]-$0}" )" >/dev/null 2>&1 && pwd )"
BASE_DIR="$( dirname "$SCRIPT_DIR" )"
INSTALLDIR="${BASE_DIR}"