projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git]
/
sudo
/
install.sh
diff --git
a/sudo/install.sh
b/sudo/install.sh
index 4724b3dc911bcadab365168c4e16b59953070bc8..112d8e74db8f25fef21778ec019a6163a560fe18 100644
(file)
--- a/
sudo/install.sh
+++ b/
sudo/install.sh
@@
-1,7
+1,8
@@
+#!/bin/bash
set -e
set -u
-{
+
function __init_sudo()
{
if [ -z "$(command -v sudo)" ]; then
echo >&2 "Error: on Linux and BSD you should install sudo via the native package manager"
@@
-12,3
+13,5
@@
set -u
fi
}
+
+__init_sudo