diff --git a/usr/local/libexec/rocinante/sysctl.sh b/usr/local/libexec/rocinante/sysctl.sh index 70e5c8b..2b0aad1 100644 --- a/usr/local/libexec/rocinante/sysctl.sh +++ b/usr/local/libexec/rocinante/sysctl.sh @@ -32,7 +32,7 @@ . /usr/local/etc/rocinante.conf sysctl_usage() { - error_exit "Usage: rocinante sysctl key=value" + error_exit "Usage: rocinante sysctl key=value [args]" } # Handle special-case commands first. diff --git a/usr/local/libexec/rocinante/update.sh b/usr/local/libexec/rocinante/update.sh index e1b175c..5e1dfe6 100644 --- a/usr/local/libexec/rocinante/update.sh +++ b/usr/local/libexec/rocinante/update.sh @@ -32,7 +32,7 @@ . /usr/local/etc/rocinante.conf update_usage() { - error_exit "Usage: rocinante update" + error_exit "Usage: rocinante update [args]" } # Handle special-case commands first. @@ -42,10 +42,6 @@ help|-h|--help) ;; esac -if [ $# -gt 1 ]; then - update_usage -fi - if [ -f "/bin/midnightbsd-version" ]; then error_exit "Not yet supported on MidnightBSD." fi @@ -55,5 +51,5 @@ if freebsd-version | grep -qi HBSD; then fi info "[UPDATE]:" -PAGER="/bin/cat" freebsd-update fetch install --not-running-from-cron +PAGER="/bin/cat" freebsd-update fetch install --not-running-from-cron "$@" echo -e "${COLOR_RESET}" diff --git a/usr/local/libexec/rocinante/upgrade.sh b/usr/local/libexec/rocinante/upgrade.sh index 7098db4..f471df1 100644 --- a/usr/local/libexec/rocinante/upgrade.sh +++ b/usr/local/libexec/rocinante/upgrade.sh @@ -32,7 +32,7 @@ . /usr/local/etc/rocinante.conf upgrade_usage() { - error_exit "Usage: rocinante upgrade release" + error_exit "Usage: rocinante upgrade release [args]" } # Handle special-case commands first. @@ -42,10 +42,6 @@ help|-h|--help) ;; esac -if [ $# -gt 1 ]; then - upgrade_usage -fi - if [ -f "/bin/midnightbsd-version" ]; then error_exit "Not yet supported on MidnightBSD." fi @@ -56,5 +52,5 @@ fi ## execute UPGRADE info "[UPGRADE]:" -PAGER="/bin/cat" freebsd-update upgrade -r $@ +PAGER="/bin/cat" freebsd-update upgrade -r "$@" echo -e "${COLOR_RESET}"