Skip to content

Commit

Permalink
scripts/gen_image_generic.sh: replace -o with if/&&
Browse files Browse the repository at this point in the history
-o is not well defined.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb authored and ynezz committed Jul 11, 2020
1 parent 227e47b commit 3819337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gen_image_generic.sh
Original file line number Diff line number Diff line change
@@ -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 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image> [<align>]"
exit 1
}
fi

OUTPUT="$1"
KERNELSIZE="$2"
Expand Down

0 comments on commit 3819337

Please sign in to comment.