Skip to content

Commit 2019aaf

Browse files
committed
Little improvement of dmesgd submit script
1 parent 392a8be commit 2019aaf

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

FreeBSD/dmesg-nycbug.sh

+20-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,25 @@ case ${product} in
1515
*) ;;
1616
esac
1717

18-
curl -v -d "nickname=$USER" -d "email=$USER@$(hostname)" -d \
19-
"description=FreeBSD/$(uname -m) on ${maker} ${product}" -d \
18+
if [ "$USER" = "olivier" ]; then
19+
email="$USER@FreeBSD.org"
20+
else
21+
email="$USER@$(hostname)"
22+
fi
23+
description="FreeBSD $(uname -r)/$(uname -m) on ${maker} ${product}"
24+
25+
echo "USER = $USER"
26+
echo "email = $email"
27+
echo "description= ${description}"
28+
29+
echo "Do you confirm those variable? (y/n)"
30+
user_confirm=""
31+
while [ "${user_confirm}" != "y" -a "${user_confirm}" != "n" ]; do
32+
read user_confirm <&1
33+
done
34+
[ "${user_confirm}" = "n" ] && exit 0
35+
36+
curl -v -d "nickname=$USER" -d "email=$email" -d \
37+
"description=$description" -d \
2038
"do=addd" --data-urlencode 'dmesg@/var/run/dmesg.boot' \
2139
http://dmesgd.nycbug.org/index.cgi

0 commit comments

Comments
 (0)