summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2011-01-24 16:02:47 -0800
committerStig Thormodsrud <stig@vyatta.com>2011-01-24 16:04:45 -0800
commite4774c5c6fbc1662047ea31ef2d0d67369a22082 (patch)
treeda04a73a8a8b49c2a9537843c808c1f469c3429d /etc
parentb99d20320beaa93b919b7af9a8cc750adad3deb4 (diff)
downloadvyatta-cfg-e4774c5c6fbc1662047ea31ef2d0d67369a22082.tar.gz
vyatta-cfg-e4774c5c6fbc1662047ea31ef2d0d67369a22082.zip
Fix 6727: should have a friendlier message on rollback error.
(cherry picked from commit e973b4d3ab1067525b4439a34598308d17065233)
Diffstat (limited to 'etc')
-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 "$@"
}