diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-07-14 01:35:02 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2020-11-20 22:51:10 -0500 |
commit | 8603c69f9009cbd52159e95af394570069a6e423 (patch) | |
tree | 632e93eecb24319a714dcc2d9b3693f27eb01ad7 /src/pkgbuild-summarize-nonfree | |
parent | 4e8af6df305e86892fb4116c781ea36e28f29fcd (diff) |
whitespace
Diffstat (limited to 'src/pkgbuild-summarize-nonfree')
-rwxr-xr-x | src/pkgbuild-summarize-nonfree | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkgbuild-summarize-nonfree b/src/pkgbuild-summarize-nonfree index 4bd76bb..2cf5ea6 100755 --- a/src/pkgbuild-summarize-nonfree +++ b/src/pkgbuild-summarize-nonfree @@ -18,6 +18,7 @@ # You should have received a copy of the GNU General Public License # along with Parabola. If not, see <http://www.gnu.org/licenses/>. + . "$(librelib messages)" # Make sure these match pkgbuild-check-nonfree @@ -28,6 +29,7 @@ declare -ri _E_LIC_NONFREE=8 declare -ri _E_DEP_NONFREE=16 declare -ri _E_PKG_NONFREE=32 + usage() { print "Usage: %s [OPTIONS] STATUS" "${0##*/}" print "Summarizes a status code from pkgbuild-check-nonfree" @@ -75,6 +77,7 @@ parse() { declare -i ret=$EXIT_SUCCESS declare -i i + for i in 1 2 4 8 16 32; do if [[ $((s & i)) -gt 0 ]]; then case $i in @@ -98,7 +101,9 @@ parse() { esac fi done + return $ret } + main "$@" |