summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rvs-core/commit.d.sh2
-rw-r--r--src/rvs-core/commit.sh2
-rw-r--r--src/rvs-core/lib/stdio.sh2
-rw-r--r--src/rvs.sh2
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