From 0bbfc3dff719e6f6691bd7cc5db06ece52ca131b Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 25 Jul 2019 00:50:26 +0200 Subject: octeon: replace backticks by $(...) This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler [decapitalized patch subject at submitter's request] Signed-off-by: Christian Lamparter --- target/linux/octeon/base-files/lib/upgrade/platform.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/octeon/base-files') diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh index 4d0047bceb..149c2fd955 100755 --- a/target/linux/octeon/base-files/lib/upgrade/platform.sh +++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh @@ -85,8 +85,8 @@ platform_check_image() { er | \ erlite) local tar_file="$1" - local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null` - local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null` + local kernel_length=$((tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null) + local rootfs_length=$((tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null) [ "$kernel_length" = 0 -o "$rootfs_length" = 0 ] && { echo "The upgrade image is corrupt." return 1 -- cgit v1.2.3