From 8d76c9b4b16b09836cc8823238cf83afafc5cb37 Mon Sep 17 00:00:00 2001 From: jodhus Date: Fri, 12 Jul 2024 12:15:24 -0400 Subject: [PATCH] Switched order of manager check. --- hopon/010_hopon_completion.bash | 6 +++--- hopon/hopon | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hopon/010_hopon_completion.bash b/hopon/010_hopon_completion.bash index 69bfea4..495fd47 100644 --- a/hopon/010_hopon_completion.bash +++ b/hopon/010_hopon_completion.bash @@ -3,10 +3,10 @@ _hopon_completions () { # Check to see if a container/VM manager is installed. local vm_manager="" - if [ -x "$(command -v lxc)" ]; then - vm_manager="lxc" - elif [ -x "$(command -v incus)" ]; then + if [ -x "$(command -v incus)" ]; then vm_manager="incus" + elif [ -x "$(command -v lxc)" ]; then + vm_manager="lxc" else return fi diff --git a/hopon/hopon b/hopon/hopon index 16dc9a0..d6290a1 100644 --- a/hopon/hopon +++ b/hopon/hopon @@ -7,10 +7,10 @@ if [ -z "$1" ]; then fi # Check to see if a container/VM manager is installed. -if [ -x "$(command -v lxc)"] ]; then - vm_manager="lxc" -elif [ -x "$(command -v incus)"] ]; then +if [ -x "$(command -v incus)"] ]; then vm_manager="incus" +elif [ -x "$(command -v lxc)"] ]; then + vm_manager="lxc" else echo "No suitable container/VM manager detected." echo "Make sure you have \"lxc\" or \"incus\" installed."