Skip to content

Commit

Permalink
Merge pull request #410 from pangenome/fallback_version
Browse files Browse the repository at this point in the history
add a fall back version
  • Loading branch information
AndreaGuarracino authored Sep 13, 2024
2 parents dcf87b4 + 468ced1 commit 66eedaa
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 66eedaa

Please sign in to comment.