From: Rosen Penev Date: Mon, 6 Jan 2020 02:22:54 +0000 (-0800) Subject: scripts/gen_image_generic.sh: replace -o with if/&& X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3819337cdf8c0c8f0807c000b01ac0c2f13c02c7;p=openwrt%2Fstaging%2Fthess.git scripts/gen_image_generic.sh: replace -o with if/&& -o is not well defined. Found with shellcheck. Signed-off-by: Rosen Penev --- diff --git a/scripts/gen_image_generic.sh b/scripts/gen_image_generic.sh index 53f73dc6e1..8091d95575 100755 --- a/scripts/gen_image_generic.sh +++ b/scripts/gen_image_generic.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash # Copyright (C) 2006-2012 OpenWrt.org set -e -x -[ $# == 5 -o $# == 6 ] || { +if [ $# -ne 5 ] && [ $# -ne 6 ]; then echo "SYNTAX: $0 []" exit 1 -} +fi OUTPUT="$1" KERNELSIZE="$2"