daemon: Added early exit check in case no packages are tracked

This commit is contained in:
Yuki Joou 2024-11-10 18:04:35 +01:00
parent 69fa7bb770
commit 9e20b62871

View file

@ -77,6 +77,8 @@ complete_reminder() {
rmdir "$tmpdir" rmdir "$tmpdir"
} }
[ -z "$( ls -A "$PACKAGES_DIR/" )" ] && exit # No packages to check!
for package_file in "$PACKAGES_DIR"/*.json; do for package_file in "$PACKAGES_DIR"/*.json; do
echo "$package_file" echo "$package_file"
tracker_type=$(jq -r '.tracker' "$package_file") tracker_type=$(jq -r '.tracker' "$package_file")