diff options
author | DL6ER <dl6er@dl6er.de> | 2020-04-21 09:54:28 +0300 |
---|---|---|
committer | DL6ER <dl6er@dl6er.de> | 2020-04-21 09:54:28 +0300 |
commit | 03431717030a3f627a4112b73e19c3f8e4458909 (patch) | |
tree | 3f47130f749f9f1b93f6837e061f3305a493a00e | |
parent | 176fbaf83bb3034ba7b19656d23a1d147a0686da (diff) |
Add correct displaying for detached HEAD state.
Signed-off-by: DL6ER <dl6er@dl6er.de>
-rwxr-xr-x | advanced/Scripts/version.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |