Commit 5787d8da by Jim Wilson Committed by Bruce Korb

Test for directory before trying to cd into it

From-SVN: r31561
parent 821ee7fb
2000-01-21 Jim Wilson <wilson@cygnus.com>
* fixinc/inclhack.tpl: Test for directory before trying to cd into it.
* fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
2000-01-21 Zack Weinberg <zack@wolery.cumb.org> 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
* cpphash.c (change_newlines): Delete function. * cpphash.c (change_newlines): Delete function.
......
...@@ -138,7 +138,14 @@ for INPUT in ${INPUTLIST} ; do ...@@ -138,7 +138,14 @@ for INPUT in ${INPUTLIST} ; do
cd ${ORIGDIR} cd ${ORIGDIR}
cd ${INPUT} || continue # Make sure a directory exists before changing into it,
# otherwise Solaris2 will fail-exit the script.
#
if [ ! -d ${INPUT} ]; then
continue
fi
cd ${INPUT}
INPUT=`${PWDCMD}` INPUT=`${PWDCMD}`
# #
......
...@@ -139,7 +139,14 @@ for INPUT in ${INPUTLIST} ; do ...@@ -139,7 +139,14 @@ for INPUT in ${INPUTLIST} ; do
cd ${ORIGDIR} cd ${ORIGDIR}
cd ${INPUT} || continue # Make sure a directory exists before changing into it,
# otherwise Solaris2 will fail-exit the script.
#
if [ ! -d ${INPUT} ]; then
continue
fi
cd ${INPUT}
INPUT=`${PWDCMD}` INPUT=`${PWDCMD}`
# #
......
...@@ -135,7 +135,14 @@ for INPUT in ${INPUTLIST} ; do ...@@ -135,7 +135,14 @@ for INPUT in ${INPUTLIST} ; do
cd ${ORIGDIR} cd ${ORIGDIR}
cd ${INPUT} || continue # Make sure a directory exists before changing into it,
# otherwise Solaris2 will fail-exit the script.
#
if [ ! -d ${INPUT} ]; then
continue
fi
cd ${INPUT}
INPUT=`${PWDCMD}` INPUT=`${PWDCMD}`
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment