redo-sh: keep testing even after finding a 'good' shell.
Otherwise we miss out on seeing the results from additional tests.
This commit is contained in:
parent
d55e329018
commit
eea3f5446a
2 changed files with 5 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ mkdir $1.new
|
|||
GOOD=
|
||||
WARN=
|
||||
|
||||
for sh in dash sh ash ksh pdksh bash zsh busybox; do
|
||||
for sh in dash sh ash ksh ksh88 ksh93 pdksh bash zsh busybox; do
|
||||
printf "Testing %s... " "$sh"
|
||||
FOUND=`which $sh 2>/dev/null` || { echo "missing"; continue; }
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ for sh in dash sh ash ksh pdksh bash zsh busybox; do
|
|||
set -e
|
||||
|
||||
case $RV in
|
||||
0) echo "good"; GOOD=$FOUND; break ;;
|
||||
0) echo "good"; [ -n "$GOOD" ] || GOOD=$FOUND ;;
|
||||
42) echo "warnings"; [ -n "$WARN" ] || WARN=$FOUND ;;
|
||||
*) echo "failed" ;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue