Skip to content

Commit

Permalink
prevent pipeline errors when pm2 is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
seyuf authored May 14, 2024
1 parent 4dd3336 commit 98f0b08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo "post release script pwa studio start"
isNpmPackageInstalled() {
sudo npm list --depth 1 -g $1 > /dev/null 2>&1
}

set +e
# checks if pm2 is installed
if isNpmPackageInstalled "pm2"
then
Expand All @@ -25,4 +25,4 @@ echo "Start the node server monnitored by PM2"
pm2 stop pwa_studio
pm2 delete pwa_studio
pm2 start yarn --interpreter bash --name pwa_studio -- start

set -e

0 comments on commit 98f0b08

Please sign in to comment.