Changed get_version code
This commit is contained in:
parent
c015d443f6
commit
6a2a677cde
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
||||||
function get_version() {
|
function get_version() {
|
||||||
local TEMP_SUFFIX
|
local TEMP_SUFFIX
|
||||||
if git diff-index HEAD -- 2>&1 > /dev/null
|
if git add . && git diff --quiet && git diff --cached --quiet
|
||||||
then
|
then
|
||||||
|
echo -n
|
||||||
|
else
|
||||||
TEMP_SUFFIX="-out-of-tree"
|
TEMP_SUFFIX="-out-of-tree"
|
||||||
fi
|
fi
|
||||||
SUFFIX="$SUFFIX$TEMP_SUFFIX"
|
SUFFIX="$SUFFIX$TEMP_SUFFIX"
|
||||||
|
|
Loading…
Add table
Reference in a new issue