tfix bug in silly(): always return true - libdevuansdk - common library for devuan's simple distro kits
HTML git clone https://git.parazyd.org/libdevuansdk
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 226008739b7c297da97a974aae4389e138f684eb
DIR parent 74185101e6aebf59f0391d7f12d60a2d962b36de
HTML Author: parazyd <parazyd@dyne.org>
Date: Thu, 26 Oct 2017 21:27:58 +0200
fix bug in silly(): always return true
Diffstat:
M zlibs/helpers | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/zlibs/helpers b/zlibs/helpers
t@@ -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
}