File: bug-script

package info (click to toggle)
devscripts 2.25.33
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,932 kB
  • sloc: perl: 28,335; sh: 12,878; python: 4,472; makefile: 382
file content (21 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

printf "\n--- /etc/devscripts.conf ---\n" >&3

if [ -f /etc/devscripts.conf ]; then
    grep -E '^[^#]' /etc/devscripts.conf | \
    grep -E -v "^\s*BTS_SMTP_AUTH_" | \
    grep -E -v "^\s*SALSA.*TOKEN" >&3 || echo "Empty." >&3
else
    echo "Not present" >&3
fi

printf "\n--- ~/.devscripts ---\n" >&3

if [ -f ~/.devscripts ]; then
    grep -E '^[^#]' ~/.devscripts | \
    grep -E -v "^\s*BTS_SMTP_AUTH_" | \
    grep -E -v "^\s*SALSA.*TOKEN" >&3 || echo "Empty." >&3
else
    echo "Not present" >&3
fi