mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-06-20 03:37:41 +02:00
build: Remove end-of-line whitespace
This commit is contained in:
parent
5ac224bc87
commit
48fe8875f7
10
build.sh
10
build.sh
@ -229,7 +229,7 @@ step_read() {
|
|||||||
if [[ -n "${2:-}" ]]; then
|
if [[ -n "${2:-}" ]]; then
|
||||||
what=" $2"
|
what=" $2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat "$1"
|
cat "$1"
|
||||||
smsg "Reading${what}"
|
smsg "Reading${what}"
|
||||||
}
|
}
|
||||||
@ -620,18 +620,18 @@ printc_msg "%{YELLOW}Preparing scripts...%{CLEAR}\n"
|
|||||||
while read -r file; do
|
while read -r file; do
|
||||||
file_bin="$(basename -- "$file" ".sh")"
|
file_bin="$(basename -- "$file" ".sh")"
|
||||||
buildable=false
|
buildable=false
|
||||||
|
|
||||||
if ! "$buildable" && [[ "${#BUILD_FILTER[@]}" -eq 0 ]]; then
|
if ! "$buildable" && [[ "${#BUILD_FILTER[@]}" -eq 0 ]]; then
|
||||||
buildable=true
|
buildable=true
|
||||||
elif ! "$buildable"; then
|
elif ! "$buildable"; then
|
||||||
for buildable_file in "${BUILD_FILTER[@]}"; do
|
for buildable_file in "${BUILD_FILTER[@]}"; do
|
||||||
if [[ "$buildable_file" = "$file_bin" ]]; then
|
if [[ "$buildable_file" = "$file_bin" ]]; then
|
||||||
buildable=true
|
buildable=true
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If that one is allowed to build, add it to the sources list.
|
# If that one is allowed to build, add it to the sources list.
|
||||||
if "$buildable"; then
|
if "$buildable"; then
|
||||||
SOURCES+=("$file")
|
SOURCES+=("$file")
|
||||||
@ -641,7 +641,7 @@ while read -r file; do
|
|||||||
done < <(batextras:get_source_paths)
|
done < <(batextras:get_source_paths)
|
||||||
|
|
||||||
if [[ "${#BUILD_FILTER[@]}" -gt 0 ]]; then
|
if [[ "${#BUILD_FILTER[@]}" -gt 0 ]]; then
|
||||||
printf "\n"
|
printf "\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user