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
|