fix condition

This commit is contained in:
localhost_frssoft 2022-08-05 20:23:29 +03:00
parent 3a2efce6d0
commit f9097b559f
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh
# Extract fields from statuses
if [ ! -f "$main_basedir"/statuses/$instance/*/*.json ]; then
check_ids=$(echo "$main_basedir"/statuses/$instance/*/*.json)
if [ ! -n "$check_ids" ]; then
exit 0
fi