launchers/spice : meilleure manière de popper le premier élément de QEMUSH_BASE

This commit is contained in:
Ahurac 2024-03-09 23:32:24 +01:00
parent 1e7f5c43b8
commit 759e085fc0

View file

@ -1,6 +1,6 @@
#!/bin/sh -x #!/bin/sh -x
base=$(echo "$QEMUSH_BASE" | cut -d , -f 1) base=$(echo "$QEMUSH_BASE" | cut -d , -f 1)
QEMUSH_BASE=$(echo "$QEMUSH_BASE" | cut -d , -f 2-) QEMUSH_BASE=$(echo "$QEMUSH_BASE" | sed "s/^${base}//" | sed 's/^,//')
exec "$base" \ exec "$base" \
-vga qxl \ -vga qxl \