summaryrefslogtreecommitdiff
path: root/plugins/repo/get.d.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/repo/get.d.sh')
-rw-r--r--plugins/repo/get.d.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/repo/get.d.sh b/plugins/repo/get.d.sh
index 98c490c..9ef25b9 100644
--- a/plugins/repo/get.d.sh
+++ b/plugins/repo/get.d.sh
@@ -20,8 +20,12 @@ tmp=`tempfile`
mkdir "$dir"
while read line; do
- hash=`echo "$line" | sed 's/^.*://'`
- name=`echo "$line" | sed "s/:$hash$//"`
+ # GNU bash optimized version
+ #hash=${line/#*:/}
+ #name=${line/%:${hash}/}
+ # POSIX version
+ hash=`echo "$line" | sed 's/^.*://'`
+ name=`echo "$line" | sed "s/:$hash$//"`
"$RVSDIR/get" "$dir/$file"
done < "$tmp"