diff --git a/partition-before-pggb b/partition-before-pggb index 605ce3c..80887bf 100755 --- a/partition-before-pggb +++ b/partition-before-pggb @@ -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" diff --git a/pggb b/pggb index 162b798..5137231 100755 --- a/pggb +++ b/pggb @@ -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"