summaryrefslogtreecommitdiff
path: root/runtests.SH
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.SH')
-rwxr-xr-xruntests.SH5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtests.SH b/runtests.SH
index 71f41d1d42..245440bd06 100755
--- a/runtests.SH
+++ b/runtests.SH
@@ -40,8 +40,9 @@ export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed mysel
# descendents of this script run cpan/ExtUtils-Constant/t/Constant.t
# which itelf invokes make, the warnings ensue.
-unset MAKEFLAGS
-
+if [ "x$MAKEFLAGS" != "x" ]; then
+ unset MAKEFLAGS
+fi
case $# in
0)