And finally, we please stickler

Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
Adam Warner 2019-11-08 20:58:42 +00:00
parent c8b9e42649
commit 73d9abae3e
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173

View file

@ -424,7 +424,7 @@ make_repo() {
# In case extra commits have been added after tagging/release (i.e in case of metadata updates/README.MD tweaks)
curBranch=$(git rev-parse --abbrev-ref HEAD)
if [[ "${curBranch}" == "master" ]]; then #If we're calling make_repo() then it should always be master, we may not need to check.
git reset --hard $(git describe --abbrev=0) || return $?
git reset --hard "$(git describe --abbrev=0)" || return $?
fi
# Show a colored message showing it's status
printf "%b %b %s\\n" "${OVER}" "${TICK}" "${str}"
@ -460,7 +460,7 @@ update_repo() {
# In case extra commits have been added after tagging/release (i.e in case of metadata updates/README.MD tweaks)
curBranch=$(git rev-parse --abbrev-ref HEAD)
if [[ "${curBranch}" == "master" ]]; then
git reset --hard $(git describe --abbrev=0) || return $?
git reset --hard "$(git describe --abbrev=0)" || return $?
fi
# Show a completion message
printf "%b %b %s\\n" "${OVER}" "${TICK}" "${str}"