forked from kiss-community/kiss
misc: comments
This commit is contained in:
parent
f70bc4c35c
commit
650e786edb
4
kiss
4
kiss
@ -45,10 +45,14 @@ contains() {
|
||||
}
|
||||
|
||||
equ() {
|
||||
# Check if a string is equal to enother.
|
||||
# This replaces '[ "$var" = str ]' and '[ "$var" != str ]'.
|
||||
case $1 in "$2") return 0 ;; *) return 1; esac
|
||||
}
|
||||
|
||||
ok() {
|
||||
# Check if a string is non-null.
|
||||
# This replaces '[ "$var" ]', '[ -n "$var" ]' and '[ -z "$var" ]'.
|
||||
case $1 in '') return 1 ;; *) return 0; esac
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user