We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1ce770 + 94cd658 commit d9dd473Copy full SHA for d9dd473
scripts/bin-path.sh
@@ -1,6 +1,19 @@
1
#!/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
8
-# 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; }
17
18
exe="$1"
19
0 commit comments