From 681fd1999045dc69d3e7748561ac396fa9ff78a3 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 16 Feb 2006 13:12:59 +0000 Subject: Ugly ugly bug: [ test for string ] fails for too many paramters. Quote the string. --- ezjail.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ezjail.sh') diff --git a/ezjail.sh b/ezjail.sh index b82e8fc..0d0a247 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -39,7 +39,7 @@ do_cmd() echo " Warning: Jail ${jail} not found." fi done - [ ${jail_pass} ] && sh /etc/rc.d/jail one${action} ${jail_pass} + [ "${jail_pass}" ] && sh /etc/rc.d/jail one${action} ${jail_pass} } run_rc_command $* -- cgit v1.2.3