1
0
Fork 0
telegraf/scripts/telegraf_entry_mac
Daniel Baumann 4978089aab
Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-24 07:26:29 +02:00

13 lines
No EOL
422 B
Bash

#!/bin/bash
currentDir="$( cd "$(dirname "$0")" ; pwd -P )"
if [[ $currentDir == *"AppTranslocation"* || $currentDir == *"Volumes"* ]]; then
osascript -e "display alert \"Please copy Telegraf to somewhere on your machine. It can't be run from the image.\" as critical"
else
cd $currentDir
osascript<<EOF
tell application "Terminal"
do script " $currentDir/../Resources/usr/bin/telegraf $@"
end tell
EOF
fi