diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2010-04-02 22:03:02 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:20 -0600 |
commit | 67952443f7a7e3a76c9755c3e0f04789ae7705d1 (patch) | |
tree | 00bea57bdf74b20c9336b565880a2def6c321a00 /rvs/plugins/files/bin/commit.f.sh | |
parent | 0f7db62d9229aeaf87ab13fb010be797b375ff5a (diff) |
well, rvs trees at least sorta work now
Diffstat (limited to 'rvs/plugins/files/bin/commit.f.sh')
-rw-r--r-- | rvs/plugins/files/bin/commit.f.sh | 10 |
1 files changed, 5 insertions, 5 deletions
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" |