fix shellcheck error of SC2068
This commit is contained in:
parent
ce4c124292
commit
a1af001a55
21 changed files with 24 additions and 24 deletions
|
@ -10,7 +10,7 @@ cmd=$1
|
||||||
shift || true
|
shift || true
|
||||||
|
|
||||||
if [[ "$cmd" = "jit" ]]; then
|
if [[ "$cmd" = "jit" ]]; then
|
||||||
cargo +${TOOLCHAIN} rustc $@ -- --jit
|
cargo +${TOOLCHAIN} rustc "$@" -- --jit
|
||||||
else
|
else
|
||||||
cargo +${TOOLCHAIN} $cmd $@
|
cargo +${TOOLCHAIN} $cmd "$@"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -3,13 +3,13 @@ set -e
|
||||||
|
|
||||||
export RUSTFLAGS="-Zrun_dsymutil=no"
|
export RUSTFLAGS="-Zrun_dsymutil=no"
|
||||||
|
|
||||||
./build.sh --without-sysroot $@
|
./build.sh --without-sysroot "$@"
|
||||||
|
|
||||||
rm -r target/out || true
|
rm -r target/out || true
|
||||||
|
|
||||||
scripts/tests.sh no_sysroot
|
scripts/tests.sh no_sysroot
|
||||||
|
|
||||||
./build.sh $@
|
./build.sh "$@"
|
||||||
|
|
||||||
scripts/tests.sh base_sysroot
|
scripts/tests.sh base_sysroot
|
||||||
scripts/tests.sh extended_sysroot
|
scripts/tests.sh extended_sysroot
|
||||||
|
|
|
@ -17,7 +17,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -22,7 +22,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -11,7 +11,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
@ -12,7 +12,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
@ -12,7 +12,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
@ -12,7 +12,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
@ -11,7 +11,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
@ -9,7 +9,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -9,7 +9,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -12,7 +12,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
@ -11,7 +11,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
@ -11,7 +11,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
|
|
|
@ -9,7 +9,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -13,7 +13,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
@ -11,7 +11,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
rm -f /tmp/build.log
|
rm -f /tmp/build.log
|
||||||
|
|
|
@ -19,7 +19,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
local ping_loop_pid=$!
|
local ping_loop_pid=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $ping_loop_pid
|
kill $ping_loop_pid
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -20,7 +20,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
|
|
|
@ -11,7 +11,7 @@ exit 1
|
||||||
trap "$on_err" ERR
|
trap "$on_err" ERR
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
PING_LOOP_PID=$!
|
PING_LOOP_PID=$!
|
||||||
$@ &> /tmp/build.log
|
"$@" &> /tmp/build.log
|
||||||
trap - ERR
|
trap - ERR
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
rm /tmp/build.log
|
rm /tmp/build.log
|
||||||
|
@ -33,7 +33,7 @@ if [ ! -d $MUSL ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $MUSL
|
cd $MUSL
|
||||||
./configure --enable-optimize --enable-debug --disable-shared --prefix=/musl-$TAG $@
|
./configure --enable-optimize --enable-debug --disable-shared --prefix=/musl-$TAG "$@"
|
||||||
if [ "$TAG" = "i586" -o "$TAG" = "i686" ]; then
|
if [ "$TAG" = "i586" -o "$TAG" = "i686" ]; then
|
||||||
hide_output make -j$(nproc) AR=ar RANLIB=ranlib
|
hide_output make -j$(nproc) AR=ar RANLIB=ranlib
|
||||||
else
|
else
|
||||||
|
|
|
@ -53,7 +53,7 @@ modules=($modules)
|
||||||
use_git=""
|
use_git=""
|
||||||
urls="$(git config --file .gitmodules --get-regexp '\.url$' | cut -d' ' -f2)"
|
urls="$(git config --file .gitmodules --get-regexp '\.url$' | cut -d' ' -f2)"
|
||||||
urls=($urls)
|
urls=($urls)
|
||||||
for i in ${!modules[@]}; do
|
for i in "${!modules[@]}"; do
|
||||||
module=${modules[$i]}
|
module=${modules[$i]}
|
||||||
if [[ " $included " = *" $module "* ]]; then
|
if [[ " $included " = *" $module "* ]]; then
|
||||||
commit="$(git ls-tree HEAD $module | awk '{print $3}')"
|
commit="$(git ls-tree HEAD $module | awk '{print $3}')"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue