scripts: fix shellcheck SC2006 'Use $(...) notation instead of legacy backticked ...
.'
This commit is contained in:
parent
0fed5290cb
commit
f92868bd30
@ -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
|
||||
|
||||
|
@ -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 ]
|
||||
|
@ -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
|
||||
|
@ -30,7 +30,7 @@ fi
|
||||
KVER=$1
|
||||
|
||||
|
||||
ROOT_DIR=`pwd`
|
||||
ROOT_DIR="$(pwd)"
|
||||
RESOURCES=$ROOT_DIR/resources/BuildResources
|
||||
|
||||
[ ! -d build ] && mkdir build
|
||||
|
@ -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
|
||||
|
@ -10,7 +10,7 @@ then
|
||||
fi
|
||||
KVER=$1
|
||||
|
||||
ROOT_DIR=`pwd`
|
||||
ROOT_DIR="$(pwd)"
|
||||
RESOURCES=$ROOT_DIR/resources/BuildResources
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user