diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2009-07-30 16:14:54 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:13 -0600 |
commit | 87f0c8dec18eb50d1461d53bf1239c8dda73ed54 (patch) | |
tree | 23d7b708973f93ed331f5a18d3e5b9e3f5f6cd56 /plugins/repo/get.d.sh | |
parent | 56d4ab21576bcc3049f62374597b7a5f47a560ab (diff) |
it builds!
Diffstat (limited to 'plugins/repo/get.d.sh')
-rw-r--r-- | plugins/repo/get.d.sh | 8 |
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" |