Skip to content

Commit

Permalink
Merge pull request #5499 from input-output-hk/smelc/more-user-friendl…
Browse files Browse the repository at this point in the history
…y-bin-path-dot-sh

bin-path.sh: be more user friendly
  • Loading branch information
angerman authored Oct 11, 2023
2 parents f1ce770 + 94cd658 commit d9dd473
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion scripts/bin-path.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/usr/bin/env bash
#
# Find the path to the built executable in the cabal plan. For example:
#
# ./scripts/bin-path.sh cardano-node
#
# Must be executed from the repository root

# Find the path to the built executable in the cabal plan.
if [[ -z "$1" ]]
then
echo "This script expects exactly one argument: the name of the executable whose path is searched for."
echo "For example pass \"cardano-node\""
exit 1
fi

[[ -e "scripts" ]] || { echo "This script must be executed from the repository's root (i.e. execute ./scripts/bin-path.sh)"; exit 1; }

exe="$1"

Expand Down

0 comments on commit d9dd473

Please sign in to comment.