diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-03 01:00:59 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-03 01:39:15 -0400 |
commit | 98f98dc4ce160518cd13f9953edf196debe95d4c (patch) | |
tree | 5394655b0c9a2549b577515477284929e7a051ad /src | |
parent | f719b2ecae8183eabcc5fc3580c32af565ea778d (diff) |
libredbdiff: tidy the header section
Diffstat (limited to 'src')
-rwxr-xr-x | src/abslibre-tools/libredbdiff | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff index 24a716d..50208f2 100755 --- a/src/abslibre-tools/libredbdiff +++ b/src/abslibre-tools/libredbdiff @@ -1,6 +1,6 @@ #!/usr/bin/env bash -name="Libredbdiff" - +# libredbdiff +# # Copyright (C) 2014 Esteban Carnevale <alfplayer@mailoo.org> # Copyright (C) 2014, 2017 Luke Shumaker <lukeshu@sbcglobal.net> # @@ -32,12 +32,13 @@ dbpath_arch="$statedir/pacman.archlinux" mirrorlist_prbl="$statedir/mirrorlist.parabola" mirrorlist_arch="$statedir/mirrorlist.archlinux" -field_pkgname_prbl=30 -field_pkgname_arch=30 - +name="Libredbdiff" cmd="${0##*/}" +field_pkgname_prbl=30 +field_pkgname_arch=30 field_pkgname_total="$((field_pkgname_prbl + field_pkgname_arch))" + printf_format="%s %-${field_pkgname_prbl}s%-${field_pkgname_arch}s %s | %s\n" printf_format_noarch="%s %-${field_pkgname_total}s %s\n" |