diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -462,13 +462,13 @@ do_unlock_systemd() { if IFS=, in_array swap ${options[@]}; then # create swap on the device only if no fs signature exists blkid -p "$2" &>/dev/null - if (( $? == 2 )) || ! mkswap /dev/mapper/$name >/dev/null; then + if (( $? != 2 )) || ! mkswap /dev/mapper/$name >/dev/null; then failed=1 fi elif IFS=, in_array tmp ${options[@]}; then # create fs on the device only if no fs signature exists blkid -p "$2" &>/dev/null - if (( $? == 2 )) || ! mke2fs /dev/mapper/$name >/dev/null; then + if (( $? != 2 )) || ! mke2fs /dev/mapper/$name >/dev/null; then failed=1 fi fi |