From 731e68a374cee56b45309f0b2767914161e15665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Fri, 7 Feb 2025 10:46:26 +0200 Subject: [PATCH] fix: move libvhdi-tools install inside correct if statement --- xo-install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index 9c43d28..cba1380 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -247,14 +247,13 @@ function InstallDependenciesRPM { # Only install libvhdi-tools if vhdimount is not present if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then - echo - printprog "Installing libvhdi-tools" if [[ "$INSTALL_REPOS" == "true" ]] && [[ "$INSTALL_EL_LIBVHDI" == "true" ]]; then + echo + printprog "Installing libvhdi-tools" runcmd "dnf copr enable -y bnerickson/libvhdi" + runcmd "dnf install -y libvhdi-tools" + printok "Installing libvhdi-tools" fi - - runcmd "dnf install -y libvhdi-tools" - printok "Installing libvhdi-tools" fi echo