aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-22 18:45:52 +0000
committerrsc <devnull@localhost>2005-07-22 18:45:52 +0000
commit8824e122a3e9a4ec6ecd5d241bc7d74581300a29 (patch)
treee76bad50a202aade3f1c877b7c545964e5ca2bca /lib
parente00db7f084a8ae8276d0d0cba143ee966ba933b3 (diff)
downloadplan9port-8824e122a3e9a4ec6ecd5d241bc7d74581300a29.tar.gz
plan9port-8824e122a3e9a4ec6ecd5d241bc7d74581300a29.tar.bz2
plan9port-8824e122a3e9a4ec6ecd5d241bc7d74581300a29.zip
dont blindly remove all the /usr/local/plan9
Diffstat (limited to 'lib')
-rw-r--r--lib/moveplan9.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/moveplan9.sh b/lib/moveplan9.sh
index 631d41cb..c34b7257 100644
--- a/lib/moveplan9.sh
+++ b/lib/moveplan9.sh
@@ -1,6 +1,12 @@
#!/bin/sh
p=`cleanname $PLAN9`
+if [ X"$p" = X"" ]
+then
+ echo cleanname failed 1>&2
+ exit 1
+fi
+
cd $PLAN9
echo "
X ,s;/usr/local/plan9($|/|});$p\\1;g