Skip to content
Snippets Groups Projects
Commit 25603b97 authored by Sertonix's avatar Sertonix Committed by Kevin Daudt
Browse files

community/apk-post-messages: posix compliant script

Also fixes a number of edge cases.
parent ed23a242
No related branches found
No related tags found
1 merge request!57851community/apk-post-messages: posix compliant script
Pipeline #212348 skipped
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=apk-post-messages
pkgver=0.10
pkgrel=1
pkgver=0.11
pkgrel=0
pkgdesc="Print apk post-install messages"
url="https://alpinelinux.org"
arch="noarch"
......
......@@ -4,13 +4,12 @@ x=README.alpine
for i; do
if [ -f "$i/$x" ]; then
msg="| $i: $x |"
msg_len=$(( $(echo $msg |wc -m) - 1))
msg_len=$(printf '%s' "$msg" | wc -m)
printf "%${msg_len}s" | sed 's/ /-/g'
echo -e "\n$msg"
printf '\n%s\n' "$msg"
printf "%${msg_len}s" | sed 's/ /=/g'
echo -e "\n"
cat $i/$x
echo -e; break
printf '\n\n'
cat -- "$i/$x"
printf '\n'
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment