Update shell code
Now it (mostly) passes shellcheck and is formatted with shfmt.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
cd "$DIR"
|
||||
|
||||
ls .
|
||||
ls .
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
"$DIR"/../shims/node "$@"
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
"$DIR"/../shims/pnpm "$@"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# figure out the platform we're on
|
||||
|
||||
@@ -11,11 +11,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# download $nodejs_version
|
||||
# verify its checksum against $nodejs_checksum
|
||||
|
||||
cd "$DIR/../node"
|
||||
|
||||
|
||||
|
||||
cd $DIR/../node
|
||||
|
||||
$DIR/pnpm install
|
||||
"$DIR"/pnpm install
|
||||
|
||||
echo we will download other files here later
|
||||
|
||||
Reference in New Issue
Block a user