Skip to content

Commit 9036d31

Browse files
committed
fixing spellcheck errors
1 parent 4d94e4d commit 9036d31

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/scripts/install-pnpm.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
if [[ $EUID == 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi
24

35
# FUNCTIONS
@@ -22,7 +24,7 @@ installation_check () {
2224
echo "A different version of pnpm is installed ($(pnpm --version)); removing it"
2325

2426
$SUDO rm -rf "$(pnpm store path)" > /dev/null 2>&1
25-
$SUDO rm -rf $PNPM_HOME > /dev/null 2>&1
27+
$SUDO rm -rf "$PNPM_HOME" > /dev/null 2>&1
2628
$SUDO npm rm -g pnpm > /dev/null 2>&1
2729
fi
2830
fi
@@ -36,7 +38,7 @@ installation_check
3638

3739
# install pnpm
3840
echo "Installing pnpm v$PNPM_ORB_VERSION"
39-
curl --retry 5 -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=$PNPM_ORB_VERSION sh -
41+
curl --retry 5 -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION="$PNPM_ORB_VERSION" sh -
4042

4143
# test/verify version
4244
echo "Verifying pnpm install"

src/scripts/packages/determine-lockfile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ elif [ -f "npm-shrinkwrap.json" ]; then
1414
cp npm-shrinkwrap.json "$TARGET_DIR"/node-project-lockfile
1515
elif [ -f "yarn.lock" ]; then
1616
echo "Found yarn.lock file, assuming lockfile"
17-
cp yarn.lock $TARGET_DIR/node-project-lockfile
17+
cp yarn.lock "$TARGET_DIR"/node-project-lockfile
1818
elif [ -f "pnpm-lock.yaml" ]; then
1919
echo "Found pnpm-lock.yaml file, assuming lockfile"
20-
cp pnpm-lock.yaml $TARGET_DIR/node-project-lockfile
20+
cp pnpm-lock.yaml "$TARGET_DIR"/node-project-lockfile
2121
else
2222
echo "Found no lockfile, adding empty one"
2323
touch "$TARGET_DIR"/node-project-lockfile

src/scripts/packages/pnpm-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
# Run override ci command if provided, otherwise run default npm install
24
if [[ -n "$PARAM_OVERRIDE_COMMAND" ]]; then
35
echo "Running override package installation command:"

0 commit comments

Comments
 (0)