Update shell code
Now it (mostly) passes shellcheck and is formatted with shfmt.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
node_common_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# Fix for https://www.shellcheck.net/wiki/SC2148
|
||||
# shellcheck shell=bash
|
||||
|
||||
node_common_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# FIXME this shouldn't be hardcoded here of course
|
||||
nodejs_binary_dir="$node_common_DIR/../binaries/node-v22.15.1-linux-x64/bin"
|
||||
@@ -6,7 +9,6 @@ nodejs_binary_dir="$node_common_DIR/../binaries/node-v22.15.1-linux-x64/bin"
|
||||
# This might be too restrictive. Or not restrictive enough.
|
||||
PATH="$nodejs_binary_dir":/bin:/usr/bin
|
||||
|
||||
|
||||
project_root="$node_common_DIR/../.."
|
||||
|
||||
node_dir="$project_root/$nodejs_binary_dir"
|
||||
|
||||
Reference in New Issue
Block a user