Skip to content

Commit

Permalink
Fix conditional statement in cd.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Apr 2, 2024
1 parent e469ff9 commit b47d54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd ./../home/ubuntu/RMUD2
git fetch
pid=$(sudo lsof -t -i:2001)
echo "Existing process: $pid"
if [[ "$(git rev-parse $BRANCH)" != "$(git rev-parse "$REMOTE/$BRANCH")" ]] || [["$pid" == ""]]; then
if [[ "$(git rev-parse $BRANCH)" != "$(git rev-parse "$REMOTE/$BRANCH")" ]] || [ -z "$pid"]; then
rm -rf ./cd.log
echo "Deploying new changes at $(date): $(git log -1 --pretty=%B)"
bash start.sh &
Expand Down

0 comments on commit b47d54d

Please sign in to comment.