From 2891ccdd3a01780cfaa49838c065181bab245ed6 Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Wed, 6 Nov 2024 22:03:42 +0530 Subject: [PATCH] chore: formatting --- core/tabs/system-setup/arch/virtualization.sh | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/core/tabs/system-setup/arch/virtualization.sh b/core/tabs/system-setup/arch/virtualization.sh index 5dbe2af6..e7543abc 100755 --- a/core/tabs/system-setup/arch/virtualization.sh +++ b/core/tabs/system-setup/arch/virtualization.sh @@ -55,7 +55,7 @@ setupLibvirt() { "$ESCALATION_TOOL" usermod "$USER" -aG libvirt for value in libvirt libvirt_guest; do - if ! grep -wq "$value" /etc/nsswitch.conf;then + if ! grep -wq "$value" /etc/nsswitch.conf; then "$ESCALATION_TOOL" sed -i "/^hosts:/ s/$/ ${value}/" /etc/nsswitch.conf fi done @@ -70,7 +70,7 @@ installLibvirt() { if ! command_exists libvirtd; then "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm libvirt dmidecode else - printf "%b\n" "${GREEN}Libvirt is already installed.${RC}" + printf "%b\n" "${GREEN}Libvirt is already installed.${RC}" fi setupLibvirt } @@ -85,16 +85,17 @@ main() { printf "%b" "Enter your choice [1-5]: " read -r CHOICE case "$CHOICE" in - 1) installQEMUDesktop ;; - 2) installQEMUEmulators ;; - 3) installLibvirt ;; - 4) installVirtManager ;; - 5) installQEMUDesktop - installQEMUEmulators - installLibvirt - installVirtManager + 1) installQEMUDesktop ;; + 2) installQEMUEmulators ;; + 3) installLibvirt ;; + 4) installVirtManager ;; + 5) + installQEMUDesktop + installQEMUEmulators + installLibvirt + installVirtManager ;; - *) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;; + *) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;; esac }