From f58ae22f47c5ee95c1213aaa632f47cff92f5955 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 16 Jul 2012 00:40:21 +0200 Subject: cryptsetup: fix up stray IFS assignments Signed-off-by: Tom Gundersen --- functions | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'functions') diff --git a/functions b/functions index 5be90c7..36cfd30 100644 --- a/functions +++ b/functions @@ -466,14 +466,13 @@ do_unlock_systemd() { if ! /usr/lib/systemd/systemd-cryptsetup attach "$1" "$2" "$3" $4; then failed=1 else - IFS=, - if in_array swap ${options[@]}; then + 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 failed=1 fi - elif in_array tmp ${options[@]}; then + 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 -- cgit v1.2.3