From efac524f7161952e278bbc597b2bb4d4ab896abf Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 16 Feb 2023 21:15:07 +0000 Subject: [PATCH] Revert "Use local variables" This reverts commit e303284bae0104758858b3b19310f02820a51fe7. --- roles/home-cli/files/profile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index ededb93..1ed51da 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -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" ]