X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=purple%2Fanswerscripts.sh;h=bea26b3abad65449cf65d8d810f382aac58296ea;hp=4410ee473e9af61f422cf55d292bc9b6f6f9c30e;hb=555bb790dd66a9c42f38e8df45b546ddf8aa781a;hpb=2c80caf35108007dca2dcec69d7a325787309763 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; }