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."