scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit 84b1e130087f409243a7d0136a8782b026e511f1
parent d9d2caedcd4908f7e16a7342eec0267489b951b5
Author: sin <sin@destiny.2f30.org>
Date:   Thu, 28 Nov 2013 15:09:40 +0000

Make it a bit more portable

Diffstat:
Mitor | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/itor b/itor @@ -24,7 +24,7 @@ fi idx=0 while read f; do echo "$idx: $f" - ((idx=idx+1)) + idx=$((idx+1)) done < $listing if [ $idx -eq 0 ]; then @@ -54,7 +54,7 @@ while read f; do if [ $index -eq $idx ]; then break fi - ((idx=idx+1)) + idx=$((idx+1)) done < $listing # Taken from: http://www.etalabs.net/sh_tricks.html