Skip to content

Instantly share code, notes, and snippets.

@jamesoff
Created December 12, 2020 11:56
Show Gist options
  • Save jamesoff/bbcb6cdec08833d23c686a58f0158c6d to your computer and use it in GitHub Desktop.
Save jamesoff/bbcb6cdec08833d23c686a58f0158c6d to your computer and use it in GitHub Desktop.
Check if Arq 6 backup is running (for Bartender 4)
#!/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
@bensurtees
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment