diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-16 19:00:40 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-16 19:00:40 +0100 |
commit | 303a52a1af49db280d8d364aedc477e6f4316189 (patch) | |
tree | 4e91ebbaaf8b60568c8b569751b05e900bc80e67 /src/core | |
parent | 21c845616778c108b9a438291d01755c651c9c84 (diff) |
fix for duplicate lv's when removing an other lv
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 8241996..4b7e273 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -474,7 +474,7 @@ interactive_filesystems() { fi fi else - # an existing LV will be edited and it's settings updated #TODO: if we have 2 LV's, and we delete one, the result is twice the other lv + # an existing LV will be edited and it's settings updated for lv in `sed 's/|/ /g' <<< $fs` do label=$(cut -d ';' -f 6 <<< $lv) @@ -494,8 +494,8 @@ interactive_filesystems() { else add= fi - [ -n "$add" -a -z "$newfs" ] && newfs=$add [ -n "$add" -a -n "$newfs" ] && newfs="$newfs|$add" + [ -n "$add" -a -z "$newfs" ] && newfs=$add done fs=$newfs fi |