Commit 469ff466 authored by Allan McRae's avatar Allan McRae
Browse files

Update proto-info.install



Check for install-info binary attempting to use it.

Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
parent 1ba1d500
......@@ -2,6 +2,7 @@ infodir=/usr/share/info
filelist=(foo.info bar)
post_install() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
......@@ -12,6 +13,7 @@ post_upgrade() {
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment