From a6e66c0450f0ff3c6b66bce24c422f7f45b55704 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 22 Feb 2007 16:21:32 +0000 Subject: the -a operator evaluates from right to left --- ezjail-admin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ezjail-admin b/ezjail-admin index cc9cb12..aa7b16d 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -278,7 +278,7 @@ create) # if a directory at the specified jail root already exists, refuse to # install. Empty root dirs are considered okay, sometimes they are # mount points to be filled by ezjail. - [ -d ${ezjail_rootdir} -a -z "`ls -I ${ezjail_rootdir}`" ] && ezjail_rootdirempty="YES" + [ -d ${ezjail_rootdir} ] && [ -z "`ls -I ${ezjail_rootdir}`" ] && ezjail_rootdirempty="YES" [ -e ${ezjail_rootdir} -a -z "${ezjail_rootdirempty}" -a -z "${ezjail_exists}" ] && exerr "Error: the specified jail root ${ezjail_rootdir} already exists." # if jail root specified on command line does not lie within our jail -- cgit v1.2.3