alsa-info.sh: Exit script after writing information to stdout

The '--stdout' option is mutually exclusive with uploading the file.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
David Ward 2019-12-21 00:32:05 -05:00 committed by Takashi Iwai
parent de5ce14163
commit e9e3c3a27d

View file

@ -349,9 +349,7 @@ case "$1" in
;; ;;
--stdout) --stdout)
DIALOG="" DIALOG=""
UPLOAD="no"
WELCOME="no" WELCOME="no"
TOSTDOUT="yes"
;; ;;
esac esac
done done
@ -720,6 +718,7 @@ if [ -n "$1" ]; then
fi fi
cat $FILE cat $FILE
rm $FILE rm $FILE
exit
;; ;;
--about) --about)
echo "Written/Tested by the following users of #alsa on irc.freenode.net:" echo "Written/Tested by the following users of #alsa on irc.freenode.net:"
@ -793,10 +792,8 @@ fi
if [ "$UPLOAD" = "no" ]; then if [ "$UPLOAD" = "no" ]; then
if [ -z "$TOSTDOUT" ]; then
mv -f $FILE $NFILE || exit 1 mv -f $FILE $NFILE || exit 1
KEEP_OUTPUT="yes" KEEP_OUTPUT="yes"
fi
if [[ -n $DIALOG ]] if [[ -n $DIALOG ]]
then then
@ -815,13 +812,11 @@ if [ "$UPLOAD" = "no" ]; then
echo "Your ALSA information is in $NFILE" echo "Your ALSA information is in $NFILE"
echo "" echo ""
else else
if [ -z "$TOSTDOUT" ]; then
echo "" echo ""
echo "Your ALSA information is in $NFILE" echo "Your ALSA information is in $NFILE"
echo "" echo ""
fi fi
fi fi
fi
exit exit