diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions index 7f2e38c..e0c37c8 100644 --- a/functions +++ b/functions @@ -50,7 +50,7 @@ deactivate_crypt() { if [ -x /sbin/dmsetup -o -x /bin/dmsetup ]; then msg "Deactivating Crypt Volumes" for v in $(dmsetup ls --target crypt --exec "dmsetup info -c --noheadings -o open,name"); do - [ ${v%%:*} -eq 0 ] && cryptsetup close ${v##*:} + [ ${v%%:*} = "0" ] && cryptsetup close ${v##*:} done deactivate_vgs "Crypt" fi |