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.sh | |
parent | fd5bf0ecb44eaae6ab24773629bacf1797d180b6 (diff) |
I can now check out from the repo!
Diffstat (limited to 'plugins/repo/get.sh')
-rw-r--r-- | plugins/repo/get.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/repo/get.sh b/plugins/repo/get.sh index 5618d0a..fcb602a 100644 --- a/plugins/repo/get.sh +++ b/plugins/repo/get.sh @@ -9,16 +9,18 @@ ver='0.7.0' # # Originally written by Luke Shumaker <lukeshu@sbcglobal.net>. -#source "$RVSDIR/lib/stdio" +source "$RVSDIR/lib/stdio" # get ID [FILE] id="$1" - tmp=`tempfile` "$RVSDIR/get.f" "$id" "$tmp" -type=`sed -n 's/^type://p' "$tmp"` +type="`sed -n 's/^type://p' "$tmp"`" file="${2-`sed -n 's/^name://p' "$tmp"`}" +hash="`sed -n 's/^hash://p' "$tmp"`" -"$RVSDIR/get.$type" "$id" "$file" +out "-$type `pwd`/$file:$hash" +"$RVSDIR/get.$type" "$hash" "$file" rm "$tmp" + |