diff options
Diffstat (limited to 'src/rvs-core/commit.sh')
-rw-r--r-- | src/rvs-core/commit.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rvs-core/commit.sh b/src/rvs-core/commit.sh index 2f120e0..189c8b9 100644 --- a/src/rvs-core/commit.sh +++ b/src/rvs-core/commit.sh @@ -23,13 +23,13 @@ fi if [ ! -e $file]; then error "file \`$file' does not exist"; # START file type list -elif [ -l $file ]; type='l'; # symbolic link -elif [ -b $file ]; type='b'; # block (buffered) special -elif [ -c $file ]; type='c'; # character (unbuffered) special -elif [ -d $file ]; type='d'; # directory -elif [ -p $file ]; type='p'; # named pipe (FIFO) -elif [ -f $file ]; type='f'; # regular file -elif [ -s $file ]; type='s'; # socket +elif [ -l $file ]; then type='l'; # symbolic link +elif [ -b $file ]; then type='b'; # block (buffered) special +elif [ -c $file ]; then type='c'; # character (unbuffered) special +elif [ -d $file ]; then type='d'; # directory +elif [ -p $file ]; then type='p'; # named pipe (FIFO) +elif [ -f $file ]; then type='f'; # regular file +elif [ -s $file ]; then type='s'; # socket #elif [ -D $file ]; type='D'; # door (Solaris only) # END file type list else error "could not identify file type of \`$file'" |