From 797494b91e13c6faf35affe5bbacb1a3d3aa13fe Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 24 Jul 2009 16:30:43 -0400 Subject: commit works fully for d and f filetypes! --- src/rvs-core/commit.d.sh | 2 +- src/rvs-core/commit.sh | 2 ++ src/rvs-core/lib/stdio.sh | 2 +- src/rvs.sh | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/rvs-core/commit.d.sh b/src/rvs-core/commit.d.sh index d8d366c..7a0cc9a 100644 --- a/src/rvs-core/commit.d.sh +++ b/src/rvs-core/commit.d.sh @@ -20,7 +20,7 @@ dir="$1" tmp=`tempfile` loginit "$tmp" for file in $dir/*; do - hash=`rvs commit "$dir/$file"` + hash=`rvs commit "$file"` echo "$file:$hash" >> "$tmp" done diff --git a/src/rvs-core/commit.sh b/src/rvs-core/commit.sh index e54c9f4..9fb44fc 100644 --- a/src/rvs-core/commit.sh +++ b/src/rvs-core/commit.sh @@ -21,6 +21,8 @@ else file='.' fi +warn "$file" + if [ ! -e $file ]; then error "file \`$file' does not exist"; # START file type list elif [ -L $file ]; then type='l'; # symbolic link diff --git a/src/rvs-core/lib/stdio.sh b/src/rvs-core/lib/stdio.sh index 57176e1..8facc79 100644 --- a/src/rvs-core/lib/stdio.sh +++ b/src/rvs-core/lib/stdio.sh @@ -32,7 +32,7 @@ error() { cat << __error__ >> /dev/stderr Usage: $name $usage -Try \`$name --help' for more options. +Try \`$name --help\' for more options. __error__ exit 1 } diff --git a/src/rvs.sh b/src/rvs.sh index 580ce50..a44570d 100644 --- a/src/rvs.sh +++ b/src/rvs.sh @@ -22,7 +22,7 @@ case "$com" in '') error 'no command specified';; *) if [ -f "$RVSDIR/$com" ]; then - $SHELL $RVSDIR/$@ + $RVSDIR/$@ else error "unrecognized command \`$com'" fi -- cgit v1.1-4-g5e80