Skip to content

Commit

Permalink
fixing spellcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ramykl committed Dec 27, 2023
1 parent 4d94e4d commit 9036d31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/scripts/install-pnpm.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

if [[ $EUID == 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi

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

$SUDO rm -rf "$(pnpm store path)" > /dev/null 2>&1
$SUDO rm -rf $PNPM_HOME > /dev/null 2>&1
$SUDO rm -rf "$PNPM_HOME" > /dev/null 2>&1
$SUDO npm rm -g pnpm > /dev/null 2>&1
fi
fi
Expand All @@ -36,7 +38,7 @@ installation_check

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

# test/verify version
echo "Verifying pnpm install"
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/packages/determine-lockfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ elif [ -f "npm-shrinkwrap.json" ]; then
cp npm-shrinkwrap.json "$TARGET_DIR"/node-project-lockfile
elif [ -f "yarn.lock" ]; then
echo "Found yarn.lock file, assuming lockfile"
cp yarn.lock $TARGET_DIR/node-project-lockfile
cp yarn.lock "$TARGET_DIR"/node-project-lockfile
elif [ -f "pnpm-lock.yaml" ]; then
echo "Found pnpm-lock.yaml file, assuming lockfile"
cp pnpm-lock.yaml $TARGET_DIR/node-project-lockfile
cp pnpm-lock.yaml "$TARGET_DIR"/node-project-lockfile
else
echo "Found no lockfile, adding empty one"
touch "$TARGET_DIR"/node-project-lockfile
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/packages/pnpm-install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

# Run override ci command if provided, otherwise run default npm install
if [[ -n "$PARAM_OVERRIDE_COMMAND" ]]; then
echo "Running override package installation command:"
Expand Down

0 comments on commit 9036d31

Please sign in to comment.