summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmchooser
diff options
context:
space:
mode:
authorSimon Rettberg2013-12-02 16:10:46 +0100
committerSimon Rettberg2013-12-02 16:10:46 +0100
commitece7bf09eb3fbb113bab1a6650dcb052480d5117 (patch)
tree9cafaa5826c7132fa4865143f4e6686c820d55fe /remote/modules/vmchooser
parentMerge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff)
downloadtm-scripts-ece7bf09eb3fbb113bab1a6650dcb052480d5117.tar.gz
tm-scripts-ece7bf09eb3fbb113bab1a6650dcb052480d5117.tar.xz
tm-scripts-ece7bf09eb3fbb113bab1a6650dcb052480d5117.zip
[vmchooser] run-virt: busybox sort compatibility
Diffstat (limited to 'remote/modules/vmchooser')
-rwxr-xr-xremote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
index 7e2eb5c5..6b9c4f0f 100755
--- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
+++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
@@ -485,8 +485,8 @@ else
fi
if [ -z "$vm_diskfile" ]; then
- new_vmpath=$(ls "${vmpath}.r"* | grep -E '\.r[0-9]+$' | sort --version-sort | tail -1)
- [ -n "$new_vmpath" ] && vmpath="$new_vmpath"
+ new_vmpath=$(ls "${vmpath}.r"* | grep -E '\.r[0-9]+$' | grep -o -E '[0-9]+' | sort -n | tail -1)
+ [ -n "$new_vmpath" ] && vmpath="$vmpath$new_vmpath"
vm_diskfile="$vmpath"
fi