chore(style): convert blocks into functions (see #325)

This commit is contained in:
Marcin Woźniak
2021-11-21 10:50:03 +00:00
committed by AJ ONeal
parent 704265583c
commit ca7a838c6f
61 changed files with 244 additions and 140 deletions
+5 -1
View File
@@ -1,7 +1,9 @@
#!/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 +14,5 @@ set -u
fi
}
__init_sudo