mirror of https://github.com/hak5/openwrt.git
scripts/gen_image_generic.sh: replace -o with if/&&
-o is not well defined. Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>master
parent
227e47b3ca
commit
3819337cdf
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Copyright (C) 2006-2012 OpenWrt.org
|
# Copyright (C) 2006-2012 OpenWrt.org
|
||||||
set -e -x
|
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>]"
|
echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image> [<align>]"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
|
|
||||||
OUTPUT="$1"
|
OUTPUT="$1"
|
||||||
KERNELSIZE="$2"
|
KERNELSIZE="$2"
|
||||||
|
|
Loading…
Reference in New Issue