diff options
Diffstat (limited to 'source3/script/installdat.sh')
-rwxr-xr-x | source3/script/installdat.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/script/installdat.sh b/source3/script/installdat.sh index 298b29452b..59bf2f919d 100755 --- a/source3/script/installdat.sh +++ b/source3/script/installdat.sh @@ -25,7 +25,7 @@ for f in $SRCDIR/codepages/*.dat; do if test "$mode" = 'install'; then echo "Installing $f as $FNAME " cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi @@ -33,7 +33,7 @@ for f in $SRCDIR/codepages/*.dat; do elif test "$mode" = 'uninstall'; then echo "Removing $FNAME " rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi |