Skip to content

Commit

Permalink
and same for partition script
Browse files Browse the repository at this point in the history
  • Loading branch information
ASLeonard authored Sep 5, 2024
1 parent 3d30612 commit fb33b29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions partition-before-pggb
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ while true ; do
esac
done

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

if [ "$show_version" == true ]; then
SCRIPT_DIR=$( cd -- "$(dirname -- "$(readlink -f "${BASH_SOURCE[0]}" )" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"
GIT_VERSION=$(git describe --always --tags --long)
echo "pggb $GIT_VERSION"
cd - &> /dev/null
exit
Expand Down Expand Up @@ -495,6 +495,8 @@ general:
compress: $compress
threads: $threads
poa_threads: $poa_threads
pggb:
version: $GIT_VERSION
$mapper:
version: $mapper_version
segment-length: $segment_length
Expand Down

0 comments on commit fb33b29

Please sign in to comment.