mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
Merge pull request #5707 from antonlacon/whitespace
packages-checker: remove trailing whitespace
This commit is contained in:
commit
2f7157f418
@ -179,7 +179,7 @@ pre_make_target() {
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "$($PKG_BUILD/scripts/config --state ${OPTION%%=*})" != "${OPTION##*=}" ]; then
|
||||
if [ "$(${PKG_BUILD}/scripts/config --state ${OPTION%%=*})" != "${OPTION##*=}" ]; then
|
||||
MISSING_KERNEL_OPTIONS+="\t${OPTION}\n"
|
||||
fi
|
||||
done < ${DISTRO_DIR}/${DISTRO}/kernel_options
|
||||
|
@ -7,9 +7,17 @@
|
||||
# follow certain coding standards used in the project. Corrections are grouped
|
||||
# by the subdirectory within the packages feed, and then commited.
|
||||
|
||||
# Corrections made:
|
||||
# PKG_VAR="$PKG_VAR stuff" -> PKG_VAR+=" stuff"
|
||||
# $PKG_VAR -> ${PKG_VAR}
|
||||
# result=`subcommand` -> result=$(subcommand)
|
||||
# [ test ] ; then -> [ test ]; then
|
||||
# trailing whitespace at end of line
|
||||
|
||||
for directory in $(find packages/ -mindepth 1 -maxdepth 1 -type d | sort); do
|
||||
for file in $(find "${directory}" -type f -name "package.mk" | sort); do
|
||||
tools/fixlecode.py -qw -f "${file}"
|
||||
sed -i 's/[[:blank:]]*$//g' "${file}"
|
||||
done
|
||||
git commit -qs -m "${directory##*/}: automated code cleanup" "${directory}"
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user