From: Harald Hoyer Date: Tue, 30 Mar 2021 08:40:12 +0000 (+0200) Subject: fix(fedora-test.sh): shellcheck for fedora-test.sh X-Git-Tag: 054~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51b67842174571cc4226b1985253095a3dcaadb5;p=thirdparty%2Fdracut.git fix(fedora-test.sh): shellcheck for fedora-test.sh --- diff --git a/fedora-test.sh b/fedora-test.sh index f5c946599..f3bc3ccd6 100755 --- a/fedora-test.sh +++ b/fedora-test.sh @@ -2,7 +2,7 @@ set -ex -[[ -d ${0%/*} ]] && cd ${0%/*} +[[ -d ${0%/*} ]] && cd "${0%/*}" RUN_ID="$1" TESTS=$2 @@ -12,18 +12,18 @@ TESTS=$2 NCPU=$(getconf _NPROCESSORS_ONLN) if ! [[ $TESTS ]]; then - make -j$NCPU all syncheck rpm logtee + make -j"$NCPU" all syncheck rpm logtee else [[ $TESTS == "99" ]] && make_docs=yes || make_docs=no - make -j$NCPU enable_documentation=$make_docs all logtee + make -j"$NCPU" enable_documentation=$make_docs all logtee cd test time sudo LOGTEE_TIMEOUT_MS=300000 make \ enable_documentation=$make_docs \ - KVERSION=$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1) \ + KVERSION="$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1)" \ DRACUT_NO_XATTR=1 \ - TEST_RUN_ID=$RUN_ID \ + TEST_RUN_ID="$RUN_ID" \ ${TESTS:+TESTS="$TESTS"} \ -k V=2 \ check