summaryrefslogtreecommitdiffstats
path: root/mod-sign.sh
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2020-08-31 15:18:49 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2020-08-31 15:18:49 +0200
commit89964532af24450f52b6d01dacd294217911419e (patch)
tree6107bc5d1b68f05be5192c06027349030291ed60 /mod-sign.sh
parent3dfb76094b2877be42c5c59e3dd88c08a12dfe54 (diff)
parentb41e8da84d859a942949cba537c8ea69d0e87df4 (diff)
downloadkernel-5.9.0-0.rc3.1.vanilla.2.fc33.tar.gz
kernel-5.9.0-0.rc3.1.vanilla.2.fc33.tar.xz
kernel-5.9.0-0.rc3.1.vanilla.2.fc33.zip
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 "*****************************"