Skip to content

Commit

Permalink
octeon: fix typo in platform.sh
Browse files Browse the repository at this point in the history
Fix upgrade typo

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
  • Loading branch information
dedeckeh committed Jan 12, 2019
1 parent e4088cb commit 4bd9d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/linux/octeon/base-files/lib/upgrade/platform.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ platform_check_image() {
local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -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` local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null`
[ "$kernel_length" = 0 -o "$rootfs_length" = 0 ] && { [ "$kernel_length" = 0 -o "$rootfs_length" = 0 ] && {
echo "The upgarde image is corrupt." echo "The upgrade image is corrupt."
return 1 return 1
} }
return 0 return 0
Expand Down

0 comments on commit 4bd9d33

Please sign in to comment.