bashisms: remove arrays
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
pkgname=gnupg
|
||||
pkgver=1.4.20
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Complete and free implementation of the OpenPGP standard'
|
||||
url='https://gnupg.org/'
|
||||
license=('GPL')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
info_dir=usr/share/info
|
||||
info_files=(gnupg1.info)
|
||||
info_files="gnupg1.info"
|
||||
|
||||
post_install() {
|
||||
[ -x usr/bin/install-info ] || return 0
|
||||
@@ -18,7 +18,7 @@ post_upgrade() {
|
||||
|
||||
pre_remove() {
|
||||
[ -x usr/bin/install-info ] || return 0
|
||||
for f in ${info_files[@]}; do
|
||||
for f in $info_files; do
|
||||
usr/bin/install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
|
||||
done
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
pkgname=pinentry
|
||||
pkgver=0.9.7
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='A collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol'
|
||||
url='https://gnupg.org/related_software/pinentry/'
|
||||
license=('GPL')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
info_dir=usr/share/info
|
||||
info_files=(pinentry.info)
|
||||
info_files="pinentry.info"
|
||||
|
||||
post_install() {
|
||||
[ -x usr/bin/install-info ] || return 0
|
||||
@@ -14,7 +14,7 @@ post_upgrade() {
|
||||
|
||||
pre_remove() {
|
||||
[ -x usr/bin/install-info ] || return 0
|
||||
for f in ${info_files[@]}; do
|
||||
for f in $info_files; do
|
||||
usr/bin/install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user