This commit is contained in:
mertoalex 2023-04-16 21:51:11 +00:00
parent 21365d3ca6
commit 79f5ea289d
2 changed files with 21 additions and 0 deletions

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
.PHONY: install uninstall
PREFIX?=/usr/local
asroot?=sudo
export PREFIX asroot
install:
@${asroot} bash -c '\
cp -v herbed-tiramisu.sh ${PREFIX}/bin;\
chown -v root:root ${PREFIX}/bin/herbed-tiramisu.sh'
uninstall:
@${asroot} rm -vf ${PREFIX}/bin/herbed-tiramisu.sh

7
herbed-tiramisu.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
tiramisu -o "export timeout=#timeout app=#source message=#summary" |
while read -r tiramisu
do $tiramisu
timeout -s9 ${timeout}s herbe "App: $app" "" "Message: $message"
done