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.
1 parent 67b93e4 commit 18d8177Copy full SHA for 18d8177
usr/local/libexec/rocinante/cmd.sh
@@ -32,22 +32,29 @@
32
. /usr/local/etc/rocinante.conf
33
34
cmd_usage() {
35
- error_exit "Usage: rocinante cmd command"
+ error_exit "Usage: rocinante cmd [OPTION] command"
36
}
37
38
+OPTION="-xc"
39
+
40
# Handle special-case commands first.
41
case "$1" in
42
help|-h|--help)
43
cmd_usage
44
;;
45
+-q|--quiet)
46
+ OPTION="-c"
47
+ shift
48
+ ;;
49
esac
50
51
if [ $# -eq 0 ]; then
52
53
fi
54
55
## execute CMD
-sh -c "$@"
56
+info "[CMD]:"
57
+sh "${OPTION}" "$@"
58
ERROR_CODE="$?"
59
info "${ERROR_CODE}"
60
0 commit comments