diff options
Diffstat (limited to 'source')
-rwxr-xr-x | source/script/installdat.sh | 4 | ||||
-rw-r--r-- | source/script/installmsg.sh | 4 | ||||
-rwxr-xr-x | source/script/installswat.sh | 36 | ||||
-rwxr-xr-x | source/script/uninstallbin.sh | 2 |
4 files changed, 23 insertions, 23 deletions
diff --git a/source/script/installdat.sh b/source/script/installdat.sh index 298b29452bc..59bf2f919dd 100755 --- a/source/script/installdat.sh +++ b/source/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 diff --git a/source/script/installmsg.sh b/source/script/installmsg.sh index 612568bbce7..859e4c10cf9 100644 --- a/source/script/installmsg.sh +++ b/source/script/installmsg.sh @@ -26,7 +26,7 @@ for f in $SRCDIR/po/*.msg; 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 @@ -34,7 +34,7 @@ for f in $SRCDIR/po/*.msg; 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 diff --git a/source/script/installswat.sh b/source/script/installswat.sh index 095ccb897b6..427e1773620 100755 --- a/source/script/installswat.sh +++ b/source/script/installswat.sh @@ -51,14 +51,14 @@ for ln in $LANGS; do echo $FNAME if test "$mode" = 'install'; then cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 "$FNAME" elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi @@ -84,14 +84,14 @@ for ln in $LANGS; do f=$f.tmp cp "$f" "$FNAME" rm -f "$f" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 "$FNAME" elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi @@ -107,14 +107,14 @@ for ln in $LANGS; do echo $FNAME if test "$mode" = 'install'; then cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 $FNAME elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi @@ -130,14 +130,14 @@ for ln in $LANGS; do echo $FNAME if test "$mode" = 'install'; then cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 $FNAME elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi @@ -171,14 +171,14 @@ if [ -d $SRCDIR../docs/htmldocs/ ]; then echo $FNAME if test "$mode" = 'install'; then cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 $FNAME elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi @@ -198,14 +198,14 @@ if [ -d $SRCDIR../docs/htmldocs/ ]; then echo $FNAME if test "$mode" = 'install'; then cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 $FNAME elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi @@ -238,14 +238,14 @@ if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; th echo $FNAME if test "$mode" = 'install'; then cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 $FNAME elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi @@ -257,14 +257,14 @@ if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; th echo $FNAME if test "$mode" = 'install'; then cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 $FNAME elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi @@ -278,14 +278,14 @@ if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; th echo $FNAME if test "$mode" = 'install'; then cp "$f" "$FNAME" - if test ! -e "$FNAME"; then + if test ! -f "$FNAME"; then echo "Cannot install $FNAME. Does $USER have privileges? " exit 1 fi chmod 0644 $FNAME elif test "$mode" = 'uninstall'; then rm -f "$FNAME" - if test -e "$FNAME"; then + if test -f "$FNAME"; then echo "Cannot remove $FNAME. Does $USER have privileges? " exit 1 fi diff --git a/source/script/uninstallbin.sh b/source/script/uninstallbin.sh index 597c5d95a52..5d39b798828 100755 --- a/source/script/uninstallbin.sh +++ b/source/script/uninstallbin.sh @@ -25,7 +25,7 @@ for p in $*; do fi # this is a special case, mount needs this in a specific location - if test "$p2" = smbmount -a -e "$DESTDIR/sbin/mount.smbfs"; then + if test "$p2" = smbmount -a -f "$DESTDIR/sbin/mount.smbfs"; then echo "Removing $DESTDIR/sbin/mount.smbfs " rm -f "$DESTDIR/sbin/mount.smbfs" fi |