Further bugfixes fixed from shellcheck
This commit is contained in:
parent
0f9adac2cd
commit
fe249830ed
2 changed files with 4 additions and 9 deletions
|
@ -1,6 +1,5 @@
|
||||||
plugin_name=$1
|
plugin_name=$1
|
||||||
check_record=$2
|
check_record=$2
|
||||||
|
|
||||||
updateerrors=0
|
updateerrors=0
|
||||||
|
|
||||||
if [[ -z "$check_record" ]]; then
|
if [[ -z "$check_record" ]]; then
|
||||||
|
@ -9,14 +8,12 @@ if [[ -z "$check_record" ]]; then
|
||||||
else
|
else
|
||||||
if [[ -r "$check_record" ]]; then
|
if [[ -r "$check_record" ]]; then
|
||||||
for d in $(getRecords "$check_record"); do
|
for d in $(getRecords "$check_record"); do
|
||||||
check-update 4 "$check_record"
|
if check-update 4 "$d"; then
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
let updateerrors++
|
let updateerrors++
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
check-update 4 "$check_record"
|
if check-update 4 "$check_record"; then
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
let updateerrors++
|
let updateerrors++
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -8,14 +8,12 @@ if [[ -z "$check_record" ]]; then
|
||||||
else
|
else
|
||||||
if [[ -r "$check_record" ]]; then
|
if [[ -r "$check_record" ]]; then
|
||||||
for d in $(getRecords "$check_record"); do
|
for d in $(getRecords "$check_record"); do
|
||||||
check-update 6 "$check_record"
|
if ! check-update 6 "$check_record"; then
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
let updateerrors++
|
let updateerrors++
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
check-update 6 "$check_record"
|
if ! check-update 6 "$check_record"; then
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
let updateerrors++
|
let updateerrors++
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue