diff --git a/advanced/Scripts/version.sh b/advanced/Scripts/version.sh index f79d5614..c4788d99 100755 --- a/advanced/Scripts/version.sh +++ b/advanced/Scripts/version.sh @@ -127,6 +127,8 @@ getLocalBranch(){ if [[ ! "${branch}" =~ ^v ]]; then if [[ "${branch}" == "master" ]]; then echo "" + elif [[ "${branch}" == "HEAD" ]]; then + echo "in detached HEAD state at " else echo "${branch} " fi