I am using bashisms, so i do need to use #!/bin/bash
authorHarvie <tomas@mudrunka.cz>
Mon, 21 Feb 2011 12:45:16 +0000 (13:45 +0100)
committerHarvie <tomas@mudrunka.cz>
Mon, 21 Feb 2011 12:45:16 +0000 (13:45 +0100)
purple/answerscripts.sh

index 4410ee473e9af61f422cf55d292bc9b6f6f9c30e..bea26b3abad65449cf65d8d810f382aac58296ea 100755 (executable)
@@ -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;
                }
 
This page took 0.142515 seconds and 4 git commands to generate.