Suppress error message on `git describe` failure
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
parent
27fb2bbe3a
commit
0ae50eab87
|
@ -202,7 +202,7 @@ compare_local_version_to_git_version() {
|
||||||
if git status &> /dev/null; then
|
if git status &> /dev/null; then
|
||||||
# The current version the user is on
|
# The current version the user is on
|
||||||
local local_version
|
local local_version
|
||||||
local_version=$(git describe --tags --abbrev=0);
|
local_version=$(git describe --tags --abbrev=0 2>&1);
|
||||||
# What branch they are on
|
# What branch they are on
|
||||||
local local_branch
|
local local_branch
|
||||||
local_branch=$(git rev-parse --abbrev-ref HEAD);
|
local_branch=$(git rev-parse --abbrev-ref HEAD);
|
||||||
|
|
Loading…
Reference in New Issue