parent
23c852125d
commit
8b4141670c
8
abra
8
abra
@ -1712,11 +1712,15 @@ sub_upgrade() {
|
|||||||
help_version (){
|
help_version (){
|
||||||
echo "abra [options] version
|
echo "abra [options] version
|
||||||
|
|
||||||
Show the installed version of abra (currently $ABRA_VERSION)."
|
Show the installed version of abra."
|
||||||
}
|
}
|
||||||
|
|
||||||
sub_version() {
|
sub_version() {
|
||||||
echo "$ABRA_VERSION"
|
if [ -L "$0" ] && [ -e "$0" ]; then
|
||||||
|
ABRA_SRC=$(readlink "$0")
|
||||||
|
ABRA_DIGEST=$(cd "${ABRA_SRC%/*}" && git rev-parse --short HEAD)
|
||||||
|
fi
|
||||||
|
echo "$ABRA_VERSION${ABRA_DIGEST:+-}${ABRA_DIGEST}"
|
||||||
}
|
}
|
||||||
|
|
||||||
###### .. help
|
###### .. help
|
||||||
|
Reference in New Issue
Block a user