-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbug-report.sh
More file actions
executable file
·52 lines (41 loc) · 1.54 KB
/
bug-report.sh
File metadata and controls
executable file
·52 lines (41 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
# Only Bash and Zsh are supported
. .lib/shell-compat-test.sh
printf $'\n'
printf $'\x1b[1;32mTutor\x1b[0m: \x1b[0;33m/\\/\\\x1b[0m Uh-oh, you found a bug!\n'
printf $'\x1b[1;32mTutor\x1b[0m: \x1b[0;33m \\_\\ _..._\x1b[0m\n'
printf $'\x1b[1;32mTutor\x1b[0m: \x1b[0;33m (" )(_..._)\x1b[0m I apologize, this should\n'
printf $'\x1b[1;32mTutor\x1b[0m: \x1b[0;33m ^^ // \\\\\x1b[0m not have happened.\n'
printf $'\x1b[1;32mTutor\x1b[0m:\n'
printf $'\x1b[1;32mTutor\x1b[0m: Tell me all about it in an email to \x1b[1;36mjhessing@gas.usu.edu\x1b[0m.\n'
cat <<-BUG | sed -e $'s/.*/\x1b[1;32mTutor\x1b[0m: &/'
In your message please explain:
* which lesson you were in
* what you tried to do
* what you thought should happen
* what actually happened
* any additional details you feel are important
Copy as much of the text as you can that precedes the problem to
give me context. Include the diagnostic text below the line.
Thanks in advance!
_________________________________________________________________________
TUTR_REVISION=$(git describe --always --dirty)
PWD=$PWD
HOME=$HOME
PATH=$PATH
SHLVL=$SHLVL
LANG=$LANG
BUG
if [[ -n $WSL_DISTRO_NAME || -n $WSL_INTEROP ]]; then
cat <<-BUG | sed -e $'s/.*/\x1b[1;32mTutor\x1b[0m: &/'
WSL_DISTRO_NAME=$WSL_DISTRO_NAME
WSL_INTEROP=$WSL_INTEROP
BUG
fi
cat <<-BUG | sed -e $'s/.*/\x1b[1;32mTutor\x1b[0m: &/'
UNAME-A=$(uname -a)
SHELL=$SHELL
$($SHELL --version)
$(git --version)
BUG
# vim: set filetype=sh noexpandtab tabstop=4 shiftwidth=4 textwidth=76 colorcolumn=76: