lib.sh: condense e() a bit

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-27 03:41:30 +01:00
parent ffdecb0ce1
commit 7b8c2bd412
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ setcfg()
e()
{
es_t="e"
[ $# -gt 1 ] && es_t="$2"
es_t="e" && [ $# -gt 1 ] && es_t="$2"
es2="already exists"
estr="[ -$es_t \"\$1\" ] || return 1"
[ $# -gt 2 ] && estr="[ -$es_t \"\$1\" ] && return 1" && es2="missing"