summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2007-10-02 20:20:05 +0000
committererdgeist <erdgeist@erdgeist.org>2007-10-02 20:20:05 +0000
commit32bf68787b0aee5b3ad87adc65875615d722eb32 (patch)
treea2af4382d2929e308f95cb9bc1fece4e9ed9633c
parent626f2fd6772a1466404889046e29c4031c23af8e (diff)
A strange utf8 char slipped into my code.
-rwxr-xr-xezjail-admin4
1 files 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)
303 # check for restore circumstances, normally this is invoked by the restore command 303 # check for restore circumstances, normally this is invoked by the restore command
304 [ "${ezjail_fromarchive}" -a "${ezjail_exists}" ] && exerr "Error: Cannot restore a jail that exists." 304 [ "${ezjail_fromarchive}" -a "${ezjail_exists}" ] && exerr "Error: Cannot restore a jail that exists."
305 [ "${ezjail_fromarchive}" -a "${ezjail_flavour}" ] && exerr "Error: Cannot apply flavours to a restored jail." 305 [ "${ezjail_fromarchive}" -a "${ezjail_flavour}" ] && exerr "Error: Cannot apply flavours to a restored jail."
306 [ "${ezjail_fromarchive}" -a ! -r ${ezjail_fromarchive} ] & exerr "Error: Cannot restore from non existin garchive: ${ezjail_fromarchive}." 306 [ "${ezjail_fromarchive}" -a ! -r ${ezjail_fromarchive} ] && exerr "Error: Cannot restore from non existing archive: ${ezjail_fromarchive}."
307 307
308 # 308 #
309 # All sanity checks that may lead to errors are hopefully passed here 309 # All sanity checks that may lead to errors are hopefully passed here
@@ -376,7 +376,7 @@ create)
376 fi 376 fi
377 fi 377 fi
378 378
379 if [ -z "${ezjail_fromarchive}" ]; then 379 if [ "${ezjail_fromarchive}" ]; then
380 mkdir -p ${ezjail_rootdir} && tar xfp ${ezjail_fromarchive} -C ${ezjail_rootdir} --strip-components 1 ezjail 380 mkdir -p ${ezjail_rootdir} && tar xfp ${ezjail_fromarchive} -C ${ezjail_rootdir} --strip-components 1 ezjail
381 [ $? = 0 ] || detach_images || exerr "Error: Could not extract archive from ${ezjail_fromarchive}." 381 [ $? = 0 ] || detach_images || exerr "Error: Could not extract archive from ${ezjail_fromarchive}."
382 elif [ -z "${ezjail_exists}" ]; then 382 elif [ -z "${ezjail_exists}" ]; then