Fix output
This commit is contained in:
parent
919ff971b4
commit
b2942339d1
1 changed files with 6 additions and 1 deletions
|
@ -8,14 +8,19 @@ if [[ $(pgrep -f "${0}" | wc -l) -eq 2 ]]; then
|
|||
# a specific host, but will differ between hosts
|
||||
sleep $((16#$(ip a | grep "link/ether" | head -1 | awk -F ':' '{print $6}' | awk '{print $1}') / 2))m
|
||||
for container in $(get_containers); do
|
||||
error_ids="${error_ids} ${container}: "
|
||||
for id in $(nocc "${container}" files_external:list --all --output json | jq '.[].mount_id' | jq .); do
|
||||
nocc "${container}" files_external:scan "${id}" | grep Error
|
||||
# shellcheck disable=SC2181
|
||||
if [[ ${?} -eq 0 ]]; then
|
||||
error_ids="${error_ids} ${container}: ${id}"
|
||||
error_ids="${error_ids} ${id}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
else
|
||||
echo "Another instance of this script is already running, exiting"
|
||||
pgrep -a -f "${0}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ -n "${error_ids}" ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue