Skip to content

Commit

Permalink
release-tools/stage-release.sh: Use 'type -p' and realpath to find $0
Browse files Browse the repository at this point in the history
This allows the release-aux directory to be found, even when a symbolic
link to this script is used.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #140)
  • Loading branch information
levitte committed May 16, 2023
1 parent e860bbd commit 1fce24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release-tools/stage-release.sh
Expand Up @@ -265,7 +265,7 @@ trap "exec 42>&-; rm $VERBOSITY_FIFO" 0 2
# Setup ##############################################################

# Check that we have the scripts that define functions we use
RELEASE_AUX=$(cd $(dirname $0)/release-aux; pwd)
RELEASE_AUX=$(dirname $(realpath $(type -p $0)))/release-aux
found=true
for fn in "$RELEASE_AUX/release-version-fn.sh" \
"$RELEASE_AUX/release-state-fn.sh" \
Expand Down

0 comments on commit 1fce24a

Please sign in to comment.