Skip to content

Commit

Permalink
add a fall back version
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Sep 13, 2024
1 parent dcf87b4 commit 468ced1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion partition-before-pggb
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ while true ; do
esac
done

PGGB_RELEASE_VERSION="v0.6.0"
SCRIPT_DIR=$( cd -- "$(dirname -- "$(readlink -f "${BASH_SOURCE[0]}" )" )" &> /dev/null && pwd )
GIT_VERSION=$( cd "$SCRIPT_DIR"; git describe --always --tags --long )
GIT_VERSION=$( cd "$SCRIPT_DIR"; git describe --always --tags --long 2> /dev/null || echo $PGGB_RELEASE_VERSION )

if [ "$show_version" == true ]; then
echo "pggb $GIT_VERSION"
Expand Down
3 changes: 2 additions & 1 deletion pggb
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ while true ; do
esac
done

PGGB_RELEASE_VERSION="v0.6.0"
SCRIPT_DIR=$( cd -- "$(dirname -- "$(readlink -f "${BASH_SOURCE[0]}" )" )" &> /dev/null && pwd )
GIT_VERSION=$( cd "$SCRIPT_DIR"; git describe --always --tags --long )
GIT_VERSION=$( cd "$SCRIPT_DIR"; git describe --always --tags --long 2> /dev/null || echo $PGGB_RELEASE_VERSION )

if [ "$show_version" == true ]; then
echo "pggb $GIT_VERSION"
Expand Down

0 comments on commit 468ced1

Please sign in to comment.