Skip to content

Commit

Permalink
chore: 🤖 add branch switch
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Nov 21, 2023
1 parent bbaecf9 commit 27e3a3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/update
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/bin/bash

targetBranch="develop"
wrkDir="/home/discord/droidscord"

cd "$wrkDir" || exit 1

if ! git checkout "$targetBranch"; then
echo "👹 Oops! Failed to switch branch"

exit 1
fi

if ! git pull origin main; then
echo "👹 Oops! Failed to pull latest"

Expand Down

0 comments on commit 27e3a3f

Please sign in to comment.