Skip to content

Commit

Permalink
Merge pull request #50 from whatwedo/feature/warn-different-branch-ch…
Browse files Browse the repository at this point in the history
…ecked-out

Add a warning if the current branch is not master or main
  • Loading branch information
s4mpl3d authored Feb 29, 2024
2 parents 8871539 + e832476 commit b02f5af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions commands/system/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ function system:update() {

_logYellow "Updating dde repository"
cd ${ROOT_DIR}
branch=$(git rev-parse --abbrev-ref HEAD)
if [ $branch != 'master' ] && [ $branch != 'main' ]
then
_logYellow "Be careful! You have not checked out the stable branch for dde. You're currently on: $branch"
fi
git pull

_logYellow "Updating docker images"
Expand Down

0 comments on commit b02f5af

Please sign in to comment.