diff options
author | Tom Gundersen <teg@jklm.no> | 2012-07-16 00:40:21 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-07-16 00:40:21 +0200 |
commit | f58ae22f47c5ee95c1213aaa632f47cff92f5955 (patch) | |
tree | 13b3a3eff475a226f42cbf351f0263ea92565e5b /functions | |
parent | 77dfb326d54bb5b66ab23b841c40f4ff1df8f495 (diff) |
cryptsetup: fix up stray IFS assignments
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |