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
#!/bin/zsh | |
path+=(/opt/homebrew/bin /Applications/Arq.app/Contents/Resources/) | |
plans=($(arqc listBackupPlans 2>/dev/null | awk -F'[= \t]' '/UUID/ {print $2}')) | |
for plan in $plans; do | |
msg=$(arqc latestBackupActivityJSON $plan 2>/dev/null | jq -r '.message') | |
if [[ $msg == "Backing up"* ]]; then | |
echo yes | |
exit 0 | |
fi | |
done | |
echo no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment