Skip to content

Commit d9dd473

Browse files
authored
Merge pull request IntersectMBO#5499 from input-output-hk/smelc/more-user-friendly-bin-path-dot-sh
bin-path.sh: be more user friendly
2 parents f1ce770 + 94cd658 commit d9dd473

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

scripts/bin-path.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
#!/usr/bin/env bash
2+
#
3+
# Find the path to the built executable in the cabal plan. For example:
4+
#
5+
# ./scripts/bin-path.sh cardano-node
6+
#
7+
# Must be executed from the repository root
28

3-
# Find the path to the built executable in the cabal plan.
9+
if [[ -z "$1" ]]
10+
then
11+
echo "This script expects exactly one argument: the name of the executable whose path is searched for."
12+
echo "For example pass \"cardano-node\""
13+
exit 1
14+
fi
15+
16+
[[ -e "scripts" ]] || { echo "This script must be executed from the repository's root (i.e. execute ./scripts/bin-path.sh)"; exit 1; }
417

518
exe="$1"
619

0 commit comments

Comments
 (0)