File: upstream

package info (click to toggle)
libpg-perl 1%3A2.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 228 kB
  • ctags: 36
  • sloc: perl: 514; ansic: 112; makefile: 7; sh: 7
file content (9 lines) | stat: -rwxr-xr-x 229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -eu
# exit code is useless, we need to parse for "not ok"
OUT=$(su -c 'PGDATABASE=test PGUSER=postgres perl test.pl' postgres)
echo "$OUT"
if echo "$OUT" | grep -q 'not ok'; then
    echo "FAILED" >&2
    exit 1
fi