File: simple

package info (click to toggle)
python-sop 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 156 kB
  • sloc: python: 944; sh: 9; makefile: 8
file content (18 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

sop() {
    python3 -m sop "$@"
}

# changing to the root dir avoids the most common accidental inclusion
# of sop/ in PYTHONPATH
cd /

sop version

# this should fail with an unsupported subcommand:
echo nope | sop armor --label=message 2>&1

if [ "$?" -ne 69 ]; then
    exit 1
fi