File: bug-script

package info (click to toggle)
devscripts 2.25.15
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,528 kB
  • sloc: perl: 26,530; sh: 11,698; python: 4,428; makefile: 363
file content (21 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (5)
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