From 8a3cca551e412d3bd5cfddc6aa73c4f97edb483f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 2 Aug 2009 23:46:36 -0400 Subject: I can now check out from the repo! --- plugins/repo/get.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/repo/get.sh') 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 . -#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" + -- cgit v1.2.3-2-g168b