mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
lib.sh: condense e() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user