Test for directory before trying to cd into it

From-SVN: r31561
This commit is contained in:
Jim Wilson 2000-01-22 19:05:31 +00:00 committed by Bruce Korb
parent 821ee7fb35
commit 5787d8dadf
4 changed files with 29 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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>
* cpphash.c (change_newlines): Delete function.

View File

@ -138,7 +138,14 @@ for INPUT in ${INPUTLIST} ; do
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}`
#

View File

@ -139,7 +139,14 @@ for INPUT in ${INPUTLIST} ; do
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}`
#

View File

@ -135,7 +135,14 @@ for INPUT in ${INPUTLIST} ; do
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}`
#