Created
December 12, 2020 11:56
-
-
Save jamesoff/bbcb6cdec08833d23c686a58f0158c6d to your computer and use it in GitHub Desktop.
Check if Arq 6 backup is running (for Bartender 4)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
log_path=/Library/Logs/ArqAgent/backup | |
last_file=(${log_path}/*(om[1])) | |
if grep -q "Backup activity ended" "$last_file"; then | |
echo no | |
exit 1 | |
fi | |
echo yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, not sure if you know but I improved the Bartender image comparison so it should now detect changes in the Arq menu bar item correctly.