Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
NanuIjaz committed Oct 12, 2023
2 parents 6b3e673 + d9dd473 commit e68ffd0
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 e68ffd0

Please sign in to comment.