diff options
author | Steffen Ritter | 2018-07-10 16:47:32 +0200 |
---|---|---|
committer | Steffen Ritter | 2018-07-10 16:47:32 +0200 |
commit | 0f7ca34d8915031f127aef92a61f427fc8e1e42e (patch) | |
tree | 94e3e356832a160a78e3d843682770e6e3b5dbbd /core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d | |
parent | [run-virt] Linux scripts: Remnant deleted (diff) | |
download | mltk-0f7ca34d8915031f127aef92a61f427fc8e1e42e.tar.gz mltk-0f7ca34d8915031f127aef92a61f427fc8e1e42e.tar.xz mltk-0f7ca34d8915031f127aef92a61f427fc8e1e42e.zip |
[client] Small improvements for visibility flag
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc index f7fee6e9..b908df2c 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc @@ -105,11 +105,12 @@ setup_virtual_floppy() { if load_dmsd_resource RUNSCRIPT; then if [ -s "$RUNSCRIPT" ]; then declare -A OPTIONS - for OPT in $(head -n 1 "$RUNSCRIPT" | tr ";" "\n") - do + IFS=$'\n' + for OPT in $(head -n 1 "$RUNSCRIPT" | tr ";" "\n"); do KEY=$(cut -s -d '=' -f 1 <<< "${OPT^^}") [ -n "$KEY" ] && OPTIONS["$KEY"]=$(cut -s -d '=' -f 2- <<< "$OPT") done + unset IFS [ ${OPTIONS[EXT]} ] && [ "x${OPTIONS[EXT]:0:1}" != "x." ] && OPTIONS[EXT]=".${OPTIONS[EXT]}" fi |