From e4774c5c6fbc1662047ea31ef2d0d67369a22082 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Mon, 24 Jan 2011 16:02:47 -0800 Subject: Fix 6727: should have a friendlier message on rollback error. (cherry picked from commit e973b4d3ab1067525b4439a34598308d17065233) --- etc/bash_completion.d/vyatta-cfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/bash_completion.d/vyatta-cfg') 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 "$@" } -- cgit v1.2.3