diff --git a/pack2taskd.sh b/pack2taskd.sh index 9c22858..657e1e8 100755 --- a/pack2taskd.sh +++ b/pack2taskd.sh @@ -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")