mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 22:36:30 +01:00
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:
parent
de5ce14163
commit
e9e3c3a27d
1 changed files with 6 additions and 11 deletions
|
@ -349,9 +349,7 @@ case "$1" in
|
|||
;;
|
||||
--stdout)
|
||||
DIALOG=""
|
||||
UPLOAD="no"
|
||||
WELCOME="no"
|
||||
TOSTDOUT="yes"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
@ -720,6 +718,7 @@ if [ -n "$1" ]; then
|
|||
fi
|
||||
cat $FILE
|
||||
rm $FILE
|
||||
exit
|
||||
;;
|
||||
--about)
|
||||
echo "Written/Tested by the following users of #alsa on irc.freenode.net:"
|
||||
|
@ -793,10 +792,8 @@ fi
|
|||
|
||||
if [ "$UPLOAD" = "no" ]; then
|
||||
|
||||
if [ -z "$TOSTDOUT" ]; then
|
||||
mv -f $FILE $NFILE || exit 1
|
||||
KEEP_OUTPUT="yes"
|
||||
fi
|
||||
|
||||
if [[ -n $DIALOG ]]
|
||||
then
|
||||
|
@ -815,13 +812,11 @@ if [ "$UPLOAD" = "no" ]; then
|
|||
echo "Your ALSA information is in $NFILE"
|
||||
echo ""
|
||||
else
|
||||
if [ -z "$TOSTDOUT" ]; then
|
||||
echo ""
|
||||
echo "Your ALSA information is in $NFILE"
|
||||
echo ""
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
exit
|
||||
|
||||
|
|
Loading…
Reference in a new issue