summaryrefslogtreecommitdiffstats
path: root/source/script/uninstallbin.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-10 01:55:42 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-10 01:55:42 +0000
commit60cdb83f3f6dfd7755e46254662245a82a8ef498 (patch)
treebda88f84626866b87a44ccb91f9adde593a241b7 /source/script/uninstallbin.sh
parent7fecc3d5a2fb641237f24a3f39c6556fde648a8a (diff)
downloadsamba-60cdb83f3f6dfd7755e46254662245a82a8ef498.tar.gz
samba-60cdb83f3f6dfd7755e46254662245a82a8ef498.tar.xz
samba-60cdb83f3f6dfd7755e46254662245a82a8ef498.zip
fixed the installation scripts for the new layout
Diffstat (limited to 'source/script/uninstallbin.sh')
-rwxr-xr-xsource/script/uninstallbin.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/script/uninstallbin.sh b/source/script/uninstallbin.sh
index fab36804a29..53775f89465 100755
--- a/source/script/uninstallbin.sh
+++ b/source/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