diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2009-08-02 23:46:36 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:13 -0600 |
commit | 8a3cca551e412d3bd5cfddc6aa73c4f97edb483f (patch) | |
tree | e037e51af44a70d19a86fc70ae2853d654e1147d /plugins/repo/get.d.sh | |
parent | fd5bf0ecb44eaae6ab24773629bacf1797d180b6 (diff) |
I can now check out from the repo!
Diffstat (limited to 'plugins/repo/get.d.sh')
-rw-r--r-- | plugins/repo/get.d.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/repo/get.d.sh b/plugins/repo/get.d.sh index 9ef25b9..9b1b5bc 100644 --- a/plugins/repo/get.d.sh +++ b/plugins/repo/get.d.sh @@ -16,9 +16,13 @@ id="$1" dir="$2" tmp=`tempfile` -"$RVSDIR/get.f" `sed -n 's/^hash://p' "$db"` "$tmp" +"$RVSDIR/get.f" "$id" "$tmp" -mkdir "$dir" +#install -d "$dir" +mkdir -p "$dir" + +cd "$dir" +rm -rf ./* while read line; do # GNU bash optimized version #hash=${line/#*:/} @@ -26,7 +30,7 @@ while read line; do # POSIX version hash=`echo "$line" | sed 's/^.*://'` name=`echo "$line" | sed "s/:$hash$//"` - "$RVSDIR/get" "$dir/$file" + "$RVSDIR/get" "$hash" "$name" done < "$tmp" rm "$tmp" |