diff options
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index a72b8c8..87aaae3 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -193,6 +193,10 @@ reboot () rollback () { + if [ $# != 1 ]; then + echo "Error: must include a revision # to rollback to" + return 1; + fi ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=rollback --revnum "$@" } |