summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d
diff options
context:
space:
mode:
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg4
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 "$@"
}