Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit fddb439

Browse files
committed
nancy prepare-workload, begin working on it
1 parent a6c54dd commit fddb439

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nancy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ case "$1" in
3131
exit 1;
3232
;;
3333
* )
34-
if [ ! -f "${BASH_SOURCE%/*}/nancy_$1.sh" ]
34+
word="${1/-/_}"
35+
if [ ! -f "${BASH_SOURCE%/*}/nancy_$word.sh" ]
3536
then
3637
>&2 echo "ERROR: Unknown command."
3738
>&2 echo "Try 'nancy help'"
3839
exit 1;
3940
fi
40-
cmd="${BASH_SOURCE%/*}/nancy_$1.sh"
41+
cmd="${BASH_SOURCE%/*}/nancy_$word.sh"
4142
shift;
4243
;;
4344
esac

0 commit comments

Comments
 (0)