tMore readable option check - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 9c9e33500e740c0d803b815bdb56cfd95185322c DIR parent 7e4a56d9c62f58942a02858be7de5c735b71f8ba HTML Author: boyska <piuttosto@logorroici.org> Date: Wed, 17 Aug 2011 19:36:45 +0200 More readable option check Diffstat: M src/tomb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/src/tomb b/src/tomb t@@ -336,7 +336,7 @@ EOF } create_tomb() { - if [[ `check_swap out` == 1 && `option_is_set "--ignore-swap" out` == 'set' ]]; then + if ! option_is_set --ignore-swap && [[ `check_swap out` == 1 ]]; then error "You have swap activated; use --ignore-swap if you want to skip this check" act "Using encryption with swap activated is very bad, because some files, or even your secret key, could be written on hard disk." act "However, it could be that your swap is encrypted. If this is case, this is ok. Then, use --ignore-swap to skip this check" t@@ -505,7 +505,7 @@ create_tomb() { mount_tomb() { notice "Commanded to open tomb $CMD2" - if [[ `check_swap out` == 1 && `option_is_set "--ignore-swap" out` == 'set' ]]; then + if ! option_is_set --ignore-swap && [[ `check_swap out` == 1 ]]; then error "You have swap activated; use --ignore-swap if you want to skip this check" act "Using encryption with swap activated is very bad, because some files, or even your secret key, could be written on hard disk." act "However, it could be that your swap is encrypted. If this is case, this is ok. Then, use --ignore-swap to skip this check"