diff options
Diffstat (limited to 'rvs/plugins/filecontent/bin/commit.f.sh')
-rw-r--r-- | rvs/plugins/filecontent/bin/commit.f.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rvs/plugins/filecontent/bin/commit.f.sh b/rvs/plugins/filecontent/bin/commit.f.sh index 726a7e3..17de155 100644 --- a/rvs/plugins/filecontent/bin/commit.f.sh +++ b/rvs/plugins/filecontent/bin/commit.f.sh @@ -25,7 +25,8 @@ file="${1?"$usage"}" prefix="${2-f}" hash=`sha1sum $file | sed "s/ .*$//"` -if [ ! -f "$REPO/@ID@/$hash" ]; then +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" fi echo "$prefix/$hash" |