mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Silence error messages of cd
to non-existent opt directories
This commit is contained in:
parent
a82e7132df
commit
8dbff6e402
1 changed files with 1 additions and 1 deletions
|
@ -1006,7 +1006,7 @@ AS_IF([test "x$OPT_DIR" != x], [
|
|||
save_IFS="$IFS" IFS="$PATH_SEPARATOR" val= PWD=
|
||||
for dir in $OPT_DIR; do
|
||||
test -z "$dir" && continue
|
||||
dir=`eval $CHDIR '"$dir"' && pwd` || continue
|
||||
dir=`eval $CHDIR '"$dir"' 2>/dev/null && pwd` || continue
|
||||
val="${val:+$val$PATH_SEPARATOR}$dir"
|
||||
done
|
||||
IFS="$save_IFS" OPT_DIR="$val"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue