mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
support/test-pkg: fix code style
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
8ac3f121f0
commit
67a221be1b
@ -10,7 +10,7 @@ main() {
|
|||||||
|
|
||||||
o='hc:d:p:r:'
|
o='hc:d:p:r:'
|
||||||
O='help,config-snippet:build-dir:package:,random:'
|
O='help,config-snippet:build-dir:package:,random:'
|
||||||
opts="$( getopt -n "${my_name}" -o "${o}" -l "${O}" -- "${@}" )"
|
opts="$(getopt -n "${my_name}" -o "${o}" -l "${O}" -- "${@}")"
|
||||||
eval set -- "${opts}"
|
eval set -- "${opts}"
|
||||||
|
|
||||||
random=0
|
random=0
|
||||||
@ -46,7 +46,7 @@ main() {
|
|||||||
# Extract the URLs of the toolchains; drop internal toolchains
|
# Extract the URLs of the toolchains; drop internal toolchains
|
||||||
# E.g.: http://server/path/to/name.config,arch,libc
|
# E.g.: http://server/path/to/name.config,arch,libc
|
||||||
# --> http://server/path/to/name.config
|
# --> http://server/path/to/name.config
|
||||||
toolchains=( $( curl -s "${TOOLCHAINS_URL}" \
|
toolchains=($(curl -s "${TOOLCHAINS_URL}" \
|
||||||
|sed -r -e 's/,.*//; /internal/d;' \
|
|sed -r -e 's/,.*//; /internal/d;' \
|
||||||
|if [ ${random} -gt 0 ]; then \
|
|if [ ${random} -gt 0 ]; then \
|
||||||
sort -R |head -n ${random}
|
sort -R |head -n ${random}
|
||||||
@ -73,7 +73,7 @@ build_one() {
|
|||||||
local toolchain line skip
|
local toolchain line skip
|
||||||
|
|
||||||
# Using basename(1) on a URL works nicely
|
# Using basename(1) on a URL works nicely
|
||||||
toolchain="$( basename "${url}" .config )"
|
toolchain="$(basename "${url}" .config)"
|
||||||
|
|
||||||
printf "%40s: " "${toolchain}"
|
printf "%40s: " "${toolchain}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user