Select Git revision
features.sh
-
Matthias Schiffer authored
To reduce the number of packages that need to be listed in GLUON_SITE_PACKAGES, this adds a new variable GLUON_FEATURES. Sets of packages are enabled automatically based on the combination of listed feature flags. Site-specified package feeds can provide their own feature flag definitions.
Matthias Schiffer authoredTo reduce the number of packages that need to be listed in GLUON_SITE_PACKAGES, this adds a new variable GLUON_FEATURES. Sets of packages are enabled automatically based on the combination of listed feature flags. Site-specified package feeds can provide their own feature flag definitions.
lint-sh.sh 573 B
#!/bin/sh
set -e
is_scriptfile() {
echo "$1" | grep -qE '.*\.sh$' || head -n1 "$1" | grep -qE '^#.*(sh|bash)$'
}
find contrib -type f | while read -r file; do
is_scriptfile "$file" || continue
echo "Checking $file"
shellcheck -f gcc "$file"
done
find package -type f | while read -r file; do
is_scriptfile "$file" || continue
echo "Checking $file"
shellcheck -f gcc -x -s sh -e SC2039,SC3043,SC3037,SC3057 "$file"
done
find scripts -type f | while read -r file; do
is_scriptfile "$file" || continue
echo "Checking $file"
shellcheck -f gcc -x "$file"
done