From 821662bc4564dcb61c0126a12a7a91e9e02dc4eb Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sun, 15 Sep 2024 19:11:30 +0900 Subject: [PATCH] DEVELOPER_TOOLBOX: improved okonomiyaki script [skip ci] --- developer_toolbox/cook_okonomiyaki.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/developer_toolbox/cook_okonomiyaki.sh b/developer_toolbox/cook_okonomiyaki.sh index 0f2288bb..8b2717bd 100755 --- a/developer_toolbox/cook_okonomiyaki.sh +++ b/developer_toolbox/cook_okonomiyaki.sh @@ -24,7 +24,11 @@ if [[ $current_branch == feat/* && $current_branch == *okonomiyaki* ]]; then git pull origin $branch echo "Merging $branch into $current_branch..." - git merge origin/$branch + if ! git merge origin/$branch; then + echo "Merge conflict detected while merging $branch!" + echo "Please resolve the conflict, then run 'git merge --continue' to finish the merge." + exit 1 # Exit the script due to conflict + fi done else echo "Current branch is not an okonomiyaki branch, quitting."