diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-05-03 11:32:47 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-05-03 11:32:47 +0000 |
commit | 310fc6ab72fdb7dae3309ad77f077152329ac89c (patch) | |
tree | 8749753f61e8642f3b0756888e39ceaf1b2695e1 | |
parent | c203880336748b7a230626affd9236e1ce66e6df (diff) |
Workaround bug in some shells, esp. the one shipped in 2.0.
-rw-r--r-- | share/mk/bsd.obj.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index 7b1e7929cc1..ee77cac36ac 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.obj.mk,v 1.7 1997/04/27 15:47:49 niklas Exp $ +# $OpenBSD: bsd.obj.mk,v 1.8 1997/05/03 11:32:46 niklas Exp $ # $NetBSD: bsd.obj.mk,v 1.9 1996/04/10 21:08:05 thorpej Exp $ .if !target(obj) @@ -40,7 +40,7 @@ obj! _SUBDIRUSE if test ! -L ${__objdir} -o \ X`perl -e "print readlink('${__objdir}')"` != X$$dest; \ then \ - test -e ${__objdir} && rm -rf ${__objdir}; \ + if test -e ${__objdir}; then rm -rf ${__objdir}; fi; \ ln -s $$dest ${__objdir}; \ fi; \ if test -d ${__usrobjdir} -a ! -d $$dest; then \ |