diff options
Diffstat (limited to 'community/apk-post-messages/apk-post-messages.trigger')
-rw-r--r-- | community/apk-post-messages/apk-post-messages.trigger | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/apk-post-messages/apk-post-messages.trigger b/community/apk-post-messages/apk-post-messages.trigger new file mode 100644 index 0000000000..224d295937 --- /dev/null +++ b/community/apk-post-messages/apk-post-messages.trigger @@ -0,0 +1,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 + |