From 7f8c19d480927814f7a59620f585e2295043d063 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 11 Jul 2021 17:19:24 +0800 Subject: [PATCH] Improve the code style on shell scripts Double quote to prevent globbing and word splitting. --- tools/bump.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bump.sh b/tools/bump.sh index 9a08d70..8bd5105 100755 --- a/tools/bump.sh +++ b/tools/bump.sh @@ -148,11 +148,11 @@ release() { build_gem # head back to working branch - git checkout $_working_branch + git checkout "$_working_branch" if [[ $_working_branch == $DEFAULT_BRANCH ]]; then if $_new_release_branch; then - git merge $_release_branch + git merge "$_release_branch" fi fi