summaryrefslogtreecommitdiff
path: root/plugins/repo/get.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/repo/get.sh')
-rw-r--r--plugins/repo/get.sh10
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"
+