Change-Id: I8ffc8ac98bc128f54aa515153615c8aa10560316
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
done
done
-if [ $undocumented_count -gt 0 ]; then
+if [ "$undocumented_count" -gt 0 ]; then
echo "Number of undocumented items: $undocumented_count"
exit 1
fi
--- /dev/null
+---
+fixes:
+ - |
+ Minor fixes to correct shellcheck warnings/errors.
# Directories beginning with {0..9} or {A..Z} are left at the top level.
( cd archives/job-configs
for letter in {a..z}; do
- if ls -d $letter* > /dev/null 2>&1; then
+ if ls -d "$letter"* > /dev/null 2>&1; then
mkdir .tmp
- mv $letter* .tmp
- mv .tmp $letter
+ mv "$letter"* .tmp
+ mv .tmp "$letter"
fi
done
)
set -f # Disable globbing for $file_patterns to pass '*'
# Purposely disable SC2068 for $file_patterns
# shellcheck disable=SC2068
-lhc --license "$licenses_allowed" ${disable_spdx} \
+lhc --license "$licenses_allowed" "${disable_spdx}" \
--exclude "$license_exclude_paths" \
${file_patterns[@]}
set +f