File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
1
3
if [[ $EUID == 0 ]]; then export SUDO=" " ; else export SUDO=" sudo" ; fi
2
4
3
5
# FUNCTIONS
@@ -22,7 +24,7 @@ installation_check () {
22
24
echo " A different version of pnpm is installed ($( pnpm --version) ); removing it"
23
25
24
26
$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
26
28
$SUDO npm rm -g pnpm > /dev/null 2>&1
27
29
fi
28
30
fi
@@ -36,7 +38,7 @@ installation_check
36
38
37
39
# install pnpm
38
40
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 -
40
42
41
43
# test/verify version
42
44
echo " Verifying pnpm install"
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ elif [ -f "npm-shrinkwrap.json" ]; then
14
14
cp npm-shrinkwrap.json " $TARGET_DIR " /node-project-lockfile
15
15
elif [ -f " yarn.lock" ]; then
16
16
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
18
18
elif [ -f " pnpm-lock.yaml" ]; then
19
19
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
21
21
else
22
22
echo " Found no lockfile, adding empty one"
23
23
touch " $TARGET_DIR " /node-project-lockfile
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
1
3
# Run override ci command if provided, otherwise run default npm install
2
4
if [[ -n " $PARAM_OVERRIDE_COMMAND " ]]; then
3
5
echo " Running override package installation command:"
You can’t perform that action at this time.
0 commit comments