From: Harvie Date: Mon, 21 Feb 2011 12:45:16 +0000 (+0100) Subject: I am using bashisms, so i do need to use #!/bin/bash X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=555bb790dd66a9c42f38e8df45b546ddf8aa781a;p=mirrors%2Flibpurple-core-answerscripts.git I am using bashisms, so i do need to use #!/bin/bash --- diff --git a/purple/answerscripts.sh b/purple/answerscripts.sh index 4410ee4..bea26b3 100755 --- a/purple/answerscripts.sh +++ b/purple/answerscripts.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # This file is called for every message received by libpurple clients (pidgin,finch,...) # - You can try to rewrite this script in PERL or C for better performance (or different platform) - let me know @@ -31,7 +31,7 @@ if test -d "$dir"; then #sleep at 49 (this can be replaced by 49-delay.sh, but this should be faster) [ $i -eq 49 ] && { - sleep $[ 2 + ($RANDOM % 8) ]; #2-9 seconds of sleep + sleep $(( 2 + ($RANDOM % 8) )); #2-9 seconds of sleep continue; }