diff options
Diffstat (limited to 'src/rvs-core')
-rw-r--r-- | src/rvs-core/commit.d.sh | 2 | ||||
-rw-r--r-- | src/rvs-core/commit.sh | 2 | ||||
-rw-r--r-- | src/rvs-core/lib/stdio.sh | 2 |
3 files changed, 4 insertions, 2 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 } |