logic changes

This commit is contained in:
2025-11-19 16:39:43 +00:00
parent d98cc8cb8f
commit 3985dbc5b9

View File

@@ -11,9 +11,9 @@
if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo "" ; exit ; fi
#
# If snap is not installed then die
# If snapd is not installed or not working then die
#
if ! command -v snap >/dev/null 2>&1; then echo "ERROR: snap is not installed aborting" ; exit 1 ; fi
if ! snap version >/dev/null 2>&1; then echo "ERROR: snapd is not installed or not working — aborting" ; exit 1 ; fi
#
# Function usage