Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/boot/install.sh: Fix shellcheck warnings

Fix shellcheck warning such as
"Double quote to prevent globbing and word splitting." and
Use $(...) notation instead of legacy backticks `...`.

Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250518044107.39928-4-maddy@linux.ibm.com

+7 -7
+7 -7
arch/powerpc/boot/install.sh
··· 19 19 set -e 20 20 21 21 # this should work for both the pSeries zImage and the iSeries vmlinux.sm 22 - image_name=`basename $2` 22 + image_name=$(basename "$2") 23 23 24 24 25 25 echo "Warning: '${INSTALLKERNEL}' command not available... Copying" \ 26 26 "directly to $4/$image_name-$1" >&2 27 27 28 - if [ -f $4/$image_name-$1 ]; then 29 - mv $4/$image_name-$1 $4/$image_name-$1.old 28 + if [ -f "$4"/"$image_name"-"$1" ]; then 29 + mv "$4"/"$image_name"-"$1" "$4"/"$image_name"-"$1".old 30 30 fi 31 31 32 - if [ -f $4/System.map-$1 ]; then 33 - mv $4/System.map-$1 $4/System-$1.old 32 + if [ -f "$4"/System.map-"$1" ]; then 33 + mv "$4"/System.map-"$1" "$4"/System-"$1".old 34 34 fi 35 35 36 - cat $2 > $4/$image_name-$1 37 - cp $3 $4/System.map-$1 36 + cat "$2" > "$4"/"$image_name"-"$1" 37 + cp "$3" "$4"/System.map-"$1"