From 67952443f7a7e3a76c9755c3e0f04789ae7705d1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 2 Apr 2010 22:03:02 -0600 Subject: well, rvs trees at least sorta work now --- rvs/plugins/files/bin/commit.f.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rvs/plugins/files/bin/commit.f.sh') diff --git a/rvs/plugins/files/bin/commit.f.sh b/rvs/plugins/files/bin/commit.f.sh index c27005b..e0df1b2 100644 --- a/rvs/plugins/files/bin/commit.f.sh +++ b/rvs/plugins/files/bin/commit.f.sh @@ -19,14 +19,14 @@ ver=0.9 . "$LIBDIR/@ID@/stdio" -usage="FILENAME [PREFIX]" +usage="FILENAME [TYPE]" file="`getvar "$1"`" prefix="${2-f}" hash=`sha1sum $file | sed "s/ .*$//"` -if [ ! -f "$REPO/@ID@/$prefix/$hash" ]; then - mkdir -p "$REPO/@ID@/$prefix" - install -m 644 -o $USER -g $USER -T "$file" "$REPO/@ID@/$prefix/$hash" +if [ ! -f "$REPO/@ID@/$hash" ]; then + mkdir -p "$REPO/@ID@/" + install -m 644 -o $USER -g $USER -T "$file" "$REPO/@ID@/$hash" fi -echo "$prefix/$hash" +echo "$prefix:$hash" -- cgit v1.2.3-54-g00ecf