fix bug in silly(): always return true

This commit is contained in:
parazyd 2017-10-26 21:27:58 +02:00
parent 74185101e6
commit 226008739b
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 1 deletions

View File

@ -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
}