From 555bb790dd66a9c42f38e8df45b546ddf8aa781a Mon Sep 17 00:00:00 2001 From: Harvie Date: Mon, 21 Feb 2011 13:45:16 +0100 Subject: [PATCH] I am using bashisms, so i do need to use #!/bin/bash --- purple/answerscripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2