Skip to content

Commit

Permalink
Merge pull request #318 from ASLeonard/master
Browse files Browse the repository at this point in the history
handle version reporting if pggb is symlinked
  • Loading branch information
AndreaGuarracino authored Jul 13, 2023
2 parents 90fad13 + 1192f76 commit 8eaf354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pggb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ while true ; do
done

if [ $show_version == true ]; then
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
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"
Expand Down

0 comments on commit 8eaf354

Please sign in to comment.