Browse Source

scripts: fix shellcheck SC2006 'Use $(...) notation instead of legacy backticked `...`.'

Austin English 4 years ago
parent
commit
f92868bd30

+ 1 - 1
scripts/buildFilesystem.sh

@@ -56,7 +56,7 @@ DEBIAN_SUITE=$2
 BASE=$3
 PRAWNOS_ROOT=$4
 
-outmnt=$(mktemp -d -p `pwd`)
+outmnt=$(mktemp -d -p "$(pwd)")
 
 outdev=/dev/loop5
 

+ 2 - 2
scripts/buildInitramFs.sh

@@ -22,7 +22,7 @@ set -e
 # along with PrawnOS.  If not, see <https://www.gnu.org/licenses/>.
 
 
-outmnt=$(mktemp -d -p `pwd`)
+outmnt=$(mktemp -d -p "$(pwd)")
 outdev=/dev/loop7
 if [ -z "$1" ]
 then
@@ -30,7 +30,7 @@ then
     exit 1
 fi
 BASE=$1
-ROOT_DIR=`pwd`
+ROOT_DIR="$(pwd)"
 build_resources=$ROOT_DIR/resources/BuildResources
 
 if [ ! -f $ROOT_DIR/$BASE ]

+ 2 - 2
scripts/buildKernel.sh

@@ -28,7 +28,7 @@ then
 fi
 
 KVER=$1
-ROOT_DIR=`pwd`
+ROOT_DIR="$(pwd)"
 RESOURCES=$ROOT_DIR/resources/BuildResources
 
 [ ! -d build ] && mkdir build
@@ -66,7 +66,7 @@ make mrproper
 #copy in the initramfs and kernel config
 cp $ROOT_DIR/build/PrawnOS-initramfs.cpio.gz .
 cp $RESOURCES/config .config
-make -j $((`nproc` +1))  CROSS_COMPILE=arm-none-eabi- ARCH=arm zImage modules dtbs
+make -j $(($(nproc) +1))  CROSS_COMPILE=arm-none-eabi- ARCH=arm zImage modules dtbs
 [ ! -h kernel.its ] && ln -s $RESOURCES/kernel.its .
 mkimage -D "-I dts -O dtb -p 2048" -f kernel.its vmlinux.uimg
 dd if=/dev/zero of=bootloader.bin bs=512 count=1

+ 1 - 1
scripts/crossmenuconfig.sh

@@ -30,7 +30,7 @@ fi
 KVER=$1
 
 
-ROOT_DIR=`pwd`
+ROOT_DIR="$(pwd)"
 RESOURCES=$ROOT_DIR/resources/BuildResources
 
 [ ! -d build ] && mkdir build

+ 1 - 1
scripts/injectKernelIntoFS.sh

@@ -32,7 +32,7 @@ fi
 KVER=$1
 OUTNAME=$2
 
-outmnt=$(mktemp -d -p `pwd`)
+outmnt=$(mktemp -d -p "$(pwd)")
 outdev=/dev/loop7
 
 build_resources=resources/BuildResources

+ 1 - 1
scripts/patchKernel.sh

@@ -10,7 +10,7 @@ then
 fi
 KVER=$1
 
-ROOT_DIR=`pwd`
+ROOT_DIR="$(pwd)"
 RESOURCES=$ROOT_DIR/resources/BuildResources