File: dangerous-plugins-disabled

package info (click to toggle)
paperwork 2.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 166,660 kB
  • sloc: python: 44,775; makefile: 992; sh: 625; xml: 135
file content (28 lines) | stat: -rw-r--r-- 614 bytes parent folder | download
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
#!/usr/bin/env bash
STATUS=0

# run paperwork-cli one time to generate configuration files
paperwork-cli

paperwork-cli --help

# Check that command 'chkdeps' cannot be run
paperwork-cli --help | grep -qE "\s+chkdeps"
if [[ "$?" -eq "0" ]]; then
	echo "cli chkdeps command is enabled!"
	STATUS=1
fi
paperwork-gtk --help | grep -qE "^\s+chkdeps"
if [[ "$?" -eq "0" ]]; then
	echo "gtk chkdeps command is enabled!"
	STATUS=1
fi

# check that command install is not available
paperwork-gtk --help | grep -qE "^\s+install"
if [[ "$?" -eq "0" ]]; then
	echo "gtk install command is enabled!"
	STATUS=1
fi

exit $STATUS