Rename function

This commit is contained in:
Augusto Gunsch 2021-08-10 11:48:14 -03:00
parent 6636fafa36
commit 7b584801c6
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ quiet() {
set -e
}
quiet_quit_on_error() {
ultra_quiet() {
local DUMMY
DUMMY=$($@ 2>&1 > /dev/null)
}
@ -63,7 +63,7 @@ echo -e "$AVAILABLE_PLATFORMS"
DISTRO=$(cat /etc/os-release | sed -nE 's/^ID=(.*)/\1/p')
INIT_SYS=$(basename $(readlink /bin/init))
set +e
quiet_quit_on_error ls /sys/firmware/efi/efivars
ultra_quiet ls /sys/firmware/efi/efivars
[ $? -eq 0 ] && UEFI=1 || UEFI=0
set -e
readonly DISTRO