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

This commit is contained in:
Austin English 2020-05-20 13:00:00 -05:00
parent 0fed5290cb
commit f92868bd30
6 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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