summaryrefslogtreecommitdiffstats
path: root/mod-sign.sh
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2020-08-31 08:06:52 -0500
committerJustin M. Forbes <jforbes@fedoraproject.org>2020-08-31 08:06:52 -0500
commitb41e8da84d859a942949cba537c8ea69d0e87df4 (patch)
tree89057ddcaa8390d7b185c7f61494cbba3c66b7b3 /mod-sign.sh
parent5c2e3ce22cdf0b480bc6f278869c52349c81929a (diff)
downloadkernel-b41e8da84d859a942949cba537c8ea69d0e87df4.tar.gz
kernel-b41e8da84d859a942949cba537c8ea69d0e87df4.tar.xz
kernel-b41e8da84d859a942949cba537c8ea69d0e87df4.zip
kernel-5.9.0-0.rc3.1
* Mon Aug 31 2020 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.9.0-0.rc3.1] - v5.9-rc3 rebase - Updated changelog for the release based on 1127b219ce94 (Fedora Kernel Team) Resolves: rhbz# Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to 'mod-sign.sh')
-rwxr-xr-xmod-sign.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod-sign.sh b/mod-sign.sh
index ed2bd62b6..1afe136e2 100755
--- a/mod-sign.sh
+++ b/mod-sign.sh
@@ -13,9 +13,9 @@ MODSECKEY=$1
MODPUBKEY=$2
moddir=$3
-modules=`find $moddir -type f -name '*.ko'`
+modules=$(find "$moddir" -type f -name '*.ko')
-NPROC=`nproc`
+NPROC=$(nproc)
[ -z "$NPROC" ] && NPROC=1
# NB: this loop runs 2000+ iterations. Try to be fast.
@@ -27,7 +27,7 @@ done
" DUMMYARG0 # xargs appends ARG1 ARG2..., which go into $mod in for loop.
RANDOMMOD=$(echo "$modules" | sort -R | head -n 1)
-if [ "~Module signature appended~" != "$(tail -c 28 $RANDOMMOD)" ]; then
+if [ "~Module signature appended~" != "$(tail -c 28 "$RANDOMMOD")" ]; then
echo "*****************************"
echo "*** Modules are unsigned! ***"
echo "*****************************"