Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support arbitrary args #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion usr/local/libexec/rocinante/sysctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 2 additions & 6 deletions usr/local/libexec/rocinante/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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}"
8 changes: 2 additions & 6 deletions usr/local/libexec/rocinante/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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}"