commit ab46222e569608e972e9d8369355fb97f444a986
parent 3c251759bb310d9785e1efc3bddaef438aa0aca5
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Tue, 14 Jan 2020 12:10:13 +0200
kiss: Ensure grep is always set
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kiss b/kiss
@@ -1091,7 +1091,7 @@ main() {
# Prefer GNU grep if installed as it is much much faster than busybox's
# implementation. Very much worth it if you value performance over
# POSIX correctness.
- grep=$(command -v ggrep 2>/dev/null) || grep='grep'
+ grep=$(command -v ggrep 2>/dev/null) || grep='grep'; : "${grep:=grep}"
# This allows for automatic setup of a KISS chroot and will
# do nothing on a normal system.