diff --git a/ci/build.ps1 b/ci/build.ps1 index 0a533e9d07..07da6c4e19 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -104,12 +104,12 @@ $client = new-object System.Net.WebClient cd c:\treesitter if ($bits -eq 32) { - $client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x86.gz","c:\treesitter\tree-sitter-cli.gz") + $client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x86.gz", "c:\treesitter\tree-sitter-cli.gz") } elseif ($bits -eq 64) { - $client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x64.gz","c:\treesitter\tree-sitter-cli.gz") + $client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x64.gz", "c:\treesitter\tree-sitter-cli.gz") } -python -c "import gzip, shutil; f1,f2 = gzip.open('tree-sitter-cli.gz', 'rb'), open('tree-sitter.exe', 'wb'); shutil.copyfileobj(f1, f2); f2.close()" +python -c "import gzip, shutil; f1,f2 = gzip.open('tree-sitter-cli.gz', 'rb'), open('tree-sitter.exe', 'wb'); shutil.copyfileobj(f1, f2); f2.close()" $client.DownloadFile("https://codeload.github.com/tree-sitter/tree-sitter-c/zip/v0.15.2","c:\treesitter\tree_sitter_c.zip") Expand-Archive c:\treesitter\tree_sitter_c.zip -DestinationPath c:\treesitter\ diff --git a/ci/install.sh b/ci/install.sh index b96cf3c073..21175f63e0 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -34,7 +34,7 @@ curl "https://codeload.github.com/tree-sitter/tree-sitter-c/tar.gz/v0.15.2" -o t tar xf tree_sitter_c.tar.gz cd tree-sitter-c-0.15.2 export TREE_SITTER_DIR=$HOME/tree-sitter-build/ -mkdir -p $TREE_SITTER_DIR/bin +mkdir -p "$TREE_SITTER_DIR/bin" if [[ "$BUILD_32BIT" != "ON" ]]; then # builds c parser in $HOME/tree-sitter-build/bin/c.(so|dylib) @@ -42,5 +42,5 @@ if [[ "$BUILD_32BIT" != "ON" ]]; then else # no tree-sitter binary for 32bit linux, so fake it (no tree-sitter unit tests) cd src/ - gcc -m32 -o $TREE_SITTER_DIR/bin/c.so -shared parser.c -I. + gcc -m32 -o "$TREE_SITTER_DIR/bin/c.so" -shared parser.c -I. fi