mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
fix shellcheck
This commit is contained in:
parent
b9be1a35a4
commit
1af1c3cf10
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
@ -64,12 +64,12 @@ fi
|
|||||||
for category in "style" "performance" "portability"; do
|
for category in "style" "performance" "portability"; do
|
||||||
if grep "${category}," ${LOG_FILE} >/dev/null; then
|
if grep "${category}," ${LOG_FILE} >/dev/null; then
|
||||||
echo "INFO: Issues in '${category}' category found, but not considered as making script to fail:"
|
echo "INFO: Issues in '${category}' category found, but not considered as making script to fail:"
|
||||||
grep "${category}," ${LOG_FILE} | grep -v `printf -- "-e %s, " "${ERROR_CATEGORIES[@]}" `
|
grep "${category}," ${LOG_FILE} | grep -v $(printf -- "-e %s, " "${ERROR_CATEGORIES[@]}")
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for category in "error" "warning" ${ERROR_CATEGORIES[@]}; do
|
for category in "error" "warning" "${ERROR_CATEGORIES[@]}"; do
|
||||||
if test "${category}" != ""; then
|
if test "${category}" != ""; then
|
||||||
if grep "${category}," ${LOG_FILE} >/dev/null; then
|
if grep "${category}," ${LOG_FILE} >/dev/null; then
|
||||||
echo "ERROR: Issues in '${category}' category found:"
|
echo "ERROR: Issues in '${category}' category found:"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user