update
parent
f19c2723e5
commit
239c8ba258
|
@ -5,18 +5,25 @@
|
||||||
virtualboxes() {
|
virtualboxes() {
|
||||||
case $LANG in
|
case $LANG in
|
||||||
pl*)
|
pl*)
|
||||||
|
VBOXGUI="VirtualBox GUI"
|
||||||
VBOXES="Maszyny wirtualne"
|
VBOXES="Maszyny wirtualne"
|
||||||
REFRESH="Odśwież listę"
|
REFRESH="Odśwież listę"
|
||||||
;;
|
;;
|
||||||
|
es*)
|
||||||
|
VBOXGUI="Interfaz VirtualBox"
|
||||||
|
VBOXES="Virtual Machines"
|
||||||
|
REFRESH="Refrescar lista"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
|
VBOXGUI="VirtualBox GUI"
|
||||||
VBOXES="Virtual Machines"
|
VBOXES="Virtual Machines"
|
||||||
REFRESH="Refresh list"
|
REFRESH="Refresh list"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [[ -x "$(command -v VBoxManage)" ]]; then
|
if [[ -x "$(command -v VBoxManage)" ]]; then
|
||||||
{
|
{
|
||||||
printf "%b\n" "^sep($VBOXES)"
|
printf "%b\n" "^sep($VBOXES)"
|
||||||
printf "%b\n" "VirtualBox GUI,virtualbox"
|
printf "%b\n" "$VBOXGUI,virtualbox"
|
||||||
printf "%b\n" "^sep()"
|
printf "%b\n" "^sep()"
|
||||||
}> $HOME/.config/mabox/vboxes.csv
|
}> $HOME/.config/mabox/vboxes.csv
|
||||||
VBoxManage list -s vms | cut -f 2 -d "\"" | sort -f | while read vm
|
VBoxManage list -s vms | cut -f 2 -d "\"" | sort -f | while read vm
|
||||||
|
|
Loading…
Reference in New Issue