forked from kiss-community/kiss
misc: nit
This commit is contained in:
parent
4f8973732e
commit
75295c11e8
6
kiss
6
kiss
@ -52,12 +52,14 @@ equ() {
|
||||
|
||||
ok() {
|
||||
# Check if a string is non-null.
|
||||
# This replaces '[ "$var" ]', '[ -n "$var" ]' and '[ -z "$var" ]'.
|
||||
# This replaces '[ "$var" ]', '[ -n "$var" ]'.
|
||||
case $1 in '') return 1 ;; *) return 0; esac
|
||||
}
|
||||
|
||||
null() {
|
||||
! ok "$1"
|
||||
# Check if a string is non-null.
|
||||
# This replaces '[ -z "$var" ]'.
|
||||
case $1 in '') return 0 ;; *) return 1; esac
|
||||
}
|
||||
|
||||
tmp_file() {
|
||||
|
Loading…
Reference in New Issue
Block a user