From 226008739b7c297da97a974aae4389e138f684eb Mon Sep 17 00:00:00 2001 From: parazyd Date: Thu, 26 Oct 2017 21:27:58 +0200 Subject: [PATCH] fix bug in silly(): always return true --- zlibs/helpers | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zlibs/helpers b/zlibs/helpers index 6771d9b..48ae294 100644 --- a/zlibs/helpers +++ b/zlibs/helpers @@ -396,5 +396,6 @@ silly() { "A million hamsters are spinning their wheels right now" ) local rnd=$(shuf -i1-$#funneh -n 1) - act "${funneh[$rnd]}" ; [[ $arg1 = sleep ]] && sleep $arg2 + act "${funneh[$rnd]}" + [[ $arg1 = sleep ]] && sleep $arg2 || true }