forked from ungleich-public/ccollect
Add report_success.sh
This commit is contained in:
parent
16c2efa1b8
commit
332ce704f6
1 changed files with 63 additions and 0 deletions
63
tools/report_success.sh
Executable file
63
tools/report_success.sh
Executable file
|
@ -0,0 +1,63 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# 2008 Nico Schottelius (nico-ccollect at schottelius.org)
|
||||
#
|
||||
# This file is part of ccollect.
|
||||
#
|
||||
# ccollect is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# ccollect is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# Sends feedback
|
||||
#
|
||||
|
||||
subject="==> success: ccollect"
|
||||
to="nico-ccollect-success"
|
||||
host="schottelius.org"
|
||||
fullto="${to}@${host}"
|
||||
|
||||
software="ccollect"
|
||||
author="Nico Schottelius"
|
||||
info="$(uname -s -v -r -m)"
|
||||
|
||||
echo "Reporting success for $software to ${author}:"
|
||||
echo "-----------------"
|
||||
echo -n "Your name (leave free for anonymous): "
|
||||
read name
|
||||
echo -n "Your email (leave free for anonymous): "
|
||||
read email
|
||||
echo -n "Comment (leave free for no comment): "
|
||||
read comment
|
||||
|
||||
echo ""
|
||||
echo "The following information will be send to ${author}:"
|
||||
echo ""
|
||||
|
||||
cat << eof
|
||||
Name: $name (will be used to contact you and kept secret)
|
||||
E-Mail: $email (will be used to contact you and kept secret)
|
||||
Comment: $comment
|
||||
Info: $info
|
||||
|
||||
eof
|
||||
|
||||
echo -n "Is it ok to send out that mail (press enter to send or ctrl-c to abort)? "
|
||||
read yes
|
||||
|
||||
cat << eof | mail -s "$subject" "$fullto"
|
||||
Name: $name (will be used to contact you and kept secret)
|
||||
E-Mail: $email (will be used to contact you and kept secret)
|
||||
Comment: $comment
|
||||
Info: $info
|
||||
eof
|
||||
|
||||
echo "Send. Thank you for your feedback."
|
Loading…
Reference in a new issue