From f9ff96df19bed007aceacdfb4496fd9cbac1d999 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 11 Mar 2018 10:52:20 +0800 Subject: Add "|| true" to make debug() work with DEBUG disabled For reasons unknown, with DEBUG disabled (i.e., DEBUG=""), the script will terminate after the debug() invocation! But bash can run this script well without this fix... --- dfly-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dfly-update b/dfly-update index c39c19c..ffc87f8 100755 --- a/dfly-update +++ b/dfly-update @@ -90,7 +90,7 @@ _HAS_UPDATE= # debug() { - [ -n "${DEBUG}" ] && echo "DEBUG: $@" >&2 + [ -n "${DEBUG}" ] && echo "DEBUG: $@" >&2 || true } warn() { -- cgit v1.2.2