diff options
Diffstat (limited to 'gnu/egcs/gcc/fixinc/inclhack.tpl')
-rw-r--r-- | gnu/egcs/gcc/fixinc/inclhack.tpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/fixinc/inclhack.tpl b/gnu/egcs/gcc/fixinc/inclhack.tpl index 587a8e53143..2c76483ba62 100644 --- a/gnu/egcs/gcc/fixinc/inclhack.tpl +++ b/gnu/egcs/gcc/fixinc/inclhack.tpl @@ -118,7 +118,12 @@ for INPUT in ${INPUTLIST} ; do cd ${ORIGDIR} -cd ${INPUT} || continue +# This originally used cd || continue, however, that does not work with the +# Solaris2 /bin/sh. +if [ ! -d ${INPUT} ]; then + continue +fi +cd ${INPUT} INPUT=`${PWDCMD}` # |