aboutsummaryrefslogtreecommitdiff
path: root/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/build-parser.sh2
-rwxr-xr-xScripts/update-parser.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/Scripts/build-parser.sh b/Scripts/build-parser.sh
index 3b93a1c..5cd7039 100755
--- a/Scripts/build-parser.sh
+++ b/Scripts/build-parser.sh
@@ -26,7 +26,7 @@
set -eu
-ROOT="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
+ROOT="$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd)"
VENDOR_DIR="$ROOT/vendor/tree-sitter-zig"
BUILD_DIR="$ROOT/build"
OUTPUT="$ROOT/Syntaxes/libtree-sitter-zig.dylib"
diff --git a/Scripts/update-parser.sh b/Scripts/update-parser.sh
index f4fab95..6e1fd63 100755
--- a/Scripts/update-parser.sh
+++ b/Scripts/update-parser.sh
@@ -32,7 +32,7 @@
set -eu
-ROOT="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
+ROOT="$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd)"
VENDOR_DIR="$ROOT/vendor/tree-sitter-zig"
UPSTREAM="https://github.com/tree-sitter-grammars/tree-sitter-zig.git"
REF="${1:-HEAD}"