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

s390/boot: improve install.sh script

Use proper quoting for the variables and explicitly distinguish between
command options and positional arguments.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Marc Hartmayer and committed by
Vasily Gorbik
d24e18ef c01f2a5f

+4 -4
+4 -4
arch/s390/boot/install.sh
··· 17 17 18 18 echo "Warning: '${INSTALLKERNEL}' command not available - additional " \ 19 19 "bootloader config required" >&2 20 - if [ -f $4/vmlinuz-$1 ]; then mv $4/vmlinuz-$1 $4/vmlinuz-$1.old; fi 21 - if [ -f $4/System.map-$1 ]; then mv $4/System.map-$1 $4/System.map-$1.old; fi 20 + if [ -f "$4/vmlinuz-$1" ]; then mv -- "$4/vmlinuz-$1" "$4/vmlinuz-$1.old"; fi 21 + if [ -f "$4/System.map-$1" ]; then mv -- "$4/System.map-$1" "$4/System.map-$1.old"; fi 22 22 23 - cat $2 > $4/vmlinuz-$1 24 - cp $3 $4/System.map-$1 23 + cat -- "$2" > "$4/vmlinuz-$1" 24 + cp -- "$3" "$4/System.map-$1"