Skip to content

Commit

Permalink
Fix: chmod +x scripts/*.sh
Browse files Browse the repository at this point in the history
Add `cd "$(dirname "$(readlink -f "$0")")/.."`
in order to ensure all scripts are run from root directory of project

Fix shebang for NixOS
  • Loading branch information
Freed-Wu committed Mar 11, 2024
1 parent cb286f0 commit def64b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/fetch-docs.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Tag: yocto-4.3.3
BITBAKE_DOCS_COMMIT=380a9ac97de5774378ded5e37d40b79b96761a0c
Expand All @@ -9,6 +9,7 @@ BITBAKE_DOCS_LIST="bitbake-user-manual-metadata.rst bitbake-user-manual-ref-vari
YOCTO_DOCS_LIST=" tasks.rst variables.rst"

set -e
cd "$(dirname "$(readlink -f "$0")")/.."

mkdir -p client/resources/docs
# Bitbake docs
Expand Down
1 change: 1 addition & 0 deletions scripts/update-tree-sitter-wasm.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Reference: https://github.com/bash-lsp/bash-language-server/blob/8c42218c77a9451b308839f9a754abde901323d5/scripts/upgrade-tree-sitter.sh

set -euox pipefail
cd "$(dirname "$(readlink -f "$0")")/.."

cd client
npm install -D tree-sitter-cli https://github.com/tree-sitter-grammars/tree-sitter-bitbake
Expand Down

0 comments on commit def64b1

Please sign in to comment.