aboutsummaryrefslogtreecommitdiff
path: root/lib/moveplan9.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/moveplan9.sh')
-rw-r--r--lib/moveplan9.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/moveplan9.sh b/lib/moveplan9.sh
index b294839f..b2280195 100644
--- a/lib/moveplan9.sh
+++ b/lib/moveplan9.sh
@@ -12,7 +12,9 @@ case $# in
exit 1
esac
-new=`cleanname $PLAN9`
+[ -z "$PLAN9_TARGET" ] && PLAN9_TARGET="$PLAN9"
+new=`cleanname $PLAN9_TARGET`
+
if [ X"$new" = X"" ]
then
echo cleanname failed 1>&2