aboutsummaryrefslogtreecommitdiffstats
path: root/community/apk-post-messages/apk-post-messages.trigger
blob: 224d295937f691f9e615431e07f3b332aacec2cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

x=README.alpine
for i; do
	if [ -f "$i/$x" ]; then
		msg="| $i: $x |"
		msg_len=$(( $(echo $msg |wc -m) - 1))
		printf "%${msg_len}s" | sed 's/ /-/g'
		echo -e "\n$msg"
		printf "%${msg_len}s" | sed 's/ /=/g'
		echo -e "\n"
		cat $i/$x
		echo -e; break
	fi
done