From 1c6f52cc284a75e304d10c098088c1c846c9efc8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Aug 1998 01:55:42 +0000 Subject: fixed the installation scripts for the new layout (This used to be commit 60cdb83f3f6dfd7755e46254662245a82a8ef498) --- source3/script/uninstallbin.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'source3/script/uninstallbin.sh') diff --git a/source3/script/uninstallbin.sh b/source3/script/uninstallbin.sh index fab36804a2..53775f8946 100755 --- a/source3/script/uninstallbin.sh +++ b/source3/script/uninstallbin.sh @@ -19,13 +19,12 @@ if [ ! -d $BINDIR ]; then fi for p in $*; do - if [ ! -f $BINDIR/$p ]; then - echo $BINDIR/$p does not exist! - else - echo Removing $BINDIR/$p - rm -f $BINDIR/$p - if [ -f $BINDIR/$p ]; then - echo Cannot remove $BINDIR/$p... does $USER have privileges? + p2=`basename $p` + if [ -f $BINDIR/$p2 ]; then + echo Removing $BINDIR/$p2 + rm -f $BINDIR/$p2 + if [ -f $BINDIR/$p2 ]; then + echo Cannot remove $BINDIR/$p2 ... does $USER have privileges? fi fi done -- cgit