diff options
-rw-r--r-- | update-me.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/update-me.in b/update-me.in index 5c7c5ea..401a6bf 100644 --- a/update-me.in +++ b/update-me.in @@ -10,7 +10,8 @@ fi . #ETCDIR#/update-me.conf -if "${hasSudo}"; then +if "${hasSudo}" && \ + comand -v sudo >/dev/null; then for ((i=0; i<${#postCmds[@]}; i++)); do if [ "${postCmds[${i}]}" = 'check-kernel -r' ]; then postCmds[${i}]='sudo check-kernel -r'; |