Revert "Use local variables"

This reverts commit e303284bae.
This commit is contained in:
Anthony Rose 2023-02-16 21:15:07 +00:00
parent f607e381f1
commit efac524f71

View file

@ -380,8 +380,8 @@ tlscheck () {
}
virtinst () {
local _acp_vm_root="$HOME/virt/images"
local _acp_vm_session=qemu:///session
_acp_vm_root="$HOME/virt/images"
_acp_vm_session=qemu:///session
case "$1" in
"--help" | -*)
@ -398,7 +398,7 @@ virtinst () {
mkdir -p "$_acp_vm_root"
fi
local _acp_vm_name=$1
_acp_vm_name=$1
virt-install --connect $_acp_vm_session \
--osinfo linux2020 \
@ -411,6 +411,10 @@ virtinst () {
--video virtio \
--autoconsole none \
--name "$@"
unset _acp_vm_name
unset _acp_vm_session
unset _acp_vm_root
}
if [ -r "$XDG_CONFIG_HOME/profile.local" ]