projects
/
webi-installers
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
feature: add test (install almost every package)
[webi-installers/.git]
/
sudo
/
install.sh
1
#!/bin/bash
2
3
set -e
4
set -u
5
6
function __init_sudo() {
7
8
if [ -z "$(command -v sudo)" ]; then
9
echo >&2 "Error: on Linux and BSD you should install sudo via the native package manager"
10
echo >&2 " for example: apt install -y sudo"
11
exit 1
12
else
13
echo "'sudo' already installed"
14
fi
15
16
}
17
18
__init_sudo