diff --git a/certbotinstall b/certbotinstall index 6372a9a..f8cfd3e 100755 --- a/certbotinstall +++ b/certbotinstall @@ -13,7 +13,7 @@ if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo # # If snapd is not installed or not working then die # -if ! snap version >/dev/null 2>&1; then echo "ERROR: snapd is not installed or not working — aborting" ; exit 1 ; fi +if ! timeout 2 snap version >/dev/null 2>&1; then echo "ERROR: snapd is not installed or not working — aborting" ; exit 1 ; fi # # Function usage