diff options
| author | Simon Rettberg | 2014-04-01 15:35:03 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2014-04-01 15:35:03 +0200 |
| commit | 926035c0f0b1a7e8062202229f97f0fd659f14db (patch) | |
| tree | 5b03f334f63e15fbf057d634223b8913d98392f0 /remote/modules/vmware/data | |
| parent | [stage31] Support for KCL-switches nvidia and amd, which unconditionally load... (diff) | |
| download | tm-scripts-926035c0f0b1a7e8062202229f97f0fd659f14db.tar.gz tm-scripts-926035c0f0b1a7e8062202229f97f0fd659f14db.tar.xz tm-scripts-926035c0f0b1a7e8062202229f97f0fd659f14db.zip | |
[vmware/vmchooser] Generalize string cleaning function
Diffstat (limited to 'remote/modules/vmware/data')
| -rw-r--r-- | remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include index 3933287b..d9a47054 100644 --- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include +++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include @@ -18,16 +18,7 @@ ### configuration writer functions ################################################################################ -function clean_string () -{ - if [ "$#" -ge 1 ]; then - echo "$@" | tr '[A-Z]' '[a-z]' | tr -d '\t _./' - else - cat - | tr '[A-Z]' '[a-z]' | tr -d '\t _./' - fi -} - -vmostype=$(clean_string "$vmostype") +vmostype=$(rv_clean_string "$vmostype") runvmwareconfheader () { @@ -466,7 +457,7 @@ esac sound="es1371" # check for 3D configuration setting -case "$(clean_string "$enable3d")" in +case "$enable3d" in true|yes) enable3d="TRUE" ;; |
