daemon: Added early exit check in case no packages are tracked
This commit is contained in:
parent
69fa7bb770
commit
9e20b62871
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ complete_reminder() {
|
|||
rmdir "$tmpdir"
|
||||
}
|
||||
|
||||
[ -z "$( ls -A "$PACKAGES_DIR/" )" ] && exit # No packages to check!
|
||||
|
||||
for package_file in "$PACKAGES_DIR"/*.json; do
|
||||
echo "$package_file"
|
||||
tracker_type=$(jq -r '.tracker' "$package_file")
|
||||
|
|
Loading…
Reference in a new issue