GIT.Harvie.CZ
/
mirrors
/
libpurple-core-answerscripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c80caf
)
I am using bashisms, so i do need to use #!/bin/bash
author
Harvie
<tomas@mudrunka.cz>
Mon, 21 Feb 2011 12:45:16 +0000
(13:45 +0100)
committer
Harvie
<tomas@mudrunka.cz>
Mon, 21 Feb 2011 12:45:16 +0000
(13:45 +0100)
purple/answerscripts.sh
patch
|
blob
|
blame
|
history
diff --git
a/purple/answerscripts.sh
b/purple/answerscripts.sh
index 4410ee473e9af61f422cf55d292bc9b6f6f9c30e..bea26b3abad65449cf65d8d810f382aac58296ea 100755
(executable)
--- a/
purple/answerscripts.sh
+++ b/
purple/answerscripts.sh
@@
-1,4
+1,4
@@
-#!/bin/sh
+#!/bin/
ba
sh
#
# 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
#
# 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 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;
}
continue;
}
This page took
0.136152 seconds
and
4
git commands to generate.