diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2017-02-12 15:53:05 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-02-12 15:59:46 +0100 |
commit | 67a221be1bf00ea012a8a9cf6ac4aa9459264cb3 (patch) | |
tree | 2dbef84b0e8d6453366f059df4d44a80fd17b157 | |
parent | 8ac3f121f0ccc31a79b08c473e19e4d4ae922942 (diff) |
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>
-rwxr-xr-x | support/scripts/test-pkg | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/support/scripts/test-pkg b/support/scripts/test-pkg index b867da8bb..9066fa066 100755 --- a/support/scripts/test-pkg +++ b/support/scripts/test-pkg @@ -10,7 +10,7 @@ main() { o='hc:d:p:r:' 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}" random=0 @@ -46,14 +46,14 @@ main() { # Extract the URLs of the toolchains; drop internal toolchains # E.g.: http://server/path/to/name.config,arch,libc # --> http://server/path/to/name.config - toolchains=( $( curl -s "${TOOLCHAINS_URL}" \ - |sed -r -e 's/,.*//; /internal/d;' \ - |if [ ${random} -gt 0 ]; then \ - sort -R |head -n ${random} - else - cat - fi |sort - ) + toolchains=($(curl -s "${TOOLCHAINS_URL}" \ + |sed -r -e 's/,.*//; /internal/d;' \ + |if [ ${random} -gt 0 ]; then \ + sort -R |head -n ${random} + else + cat + fi |sort + ) ) if [ ${#toolchains[@]} -eq 0 ]; then @@ -73,7 +73,7 @@ build_one() { local toolchain line skip # Using basename(1) on a URL works nicely - toolchain="$( basename "${url}" .config )" + toolchain="$(basename "${url}" .config)" printf "%40s: " "${toolchain}" |