From 32bf68787b0aee5b3ad87adc65875615d722eb32 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 2 Oct 2007 20:20:05 +0000 Subject: A strange utf8 char slipped into my code. --- ezjail-admin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ezjail-admin b/ezjail-admin index aee2dff..9690076 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -303,7 +303,7 @@ create) # check for restore circumstances, normally this is invoked by the restore command [ "${ezjail_fromarchive}" -a "${ezjail_exists}" ] && exerr "Error: Cannot restore a jail that exists." [ "${ezjail_fromarchive}" -a "${ezjail_flavour}" ] && exerr "Error: Cannot apply flavours to a restored jail." - [ "${ezjail_fromarchive}" -a ! -r ${ezjail_fromarchive} ] & exerr "Error: Cannot restore from non existin garchive: ${ezjail_fromarchive}." + [ "${ezjail_fromarchive}" -a ! -r ${ezjail_fromarchive} ] && exerr "Error: Cannot restore from non existing archive: ${ezjail_fromarchive}." # # All sanity checks that may lead to errors are hopefully passed here @@ -376,7 +376,7 @@ create) fi fi - if [ -z "${ezjail_fromarchive}" ]; then + if [ "${ezjail_fromarchive}" ]; then mkdir -p ${ezjail_rootdir} && tar xfp ${ezjail_fromarchive} -C ${ezjail_rootdir} --strip-components 1 ezjail [ $? = 0 ] || detach_images || exerr "Error: Could not extract archive from ${ezjail_fromarchive}." elif [ -z "${ezjail_exists}" ]; then -- cgit v1.2.3