trees: explicitly err if OPTARG is not set
we currently rely on -e to make this happen Signed-off-by: Leah Rowe <leah@libreboot.org>audit6
parent
f383b1ad70
commit
9154ba5b85
|
@ -31,6 +31,7 @@ main()
|
||||||
-n) mode="nconfig" ;;
|
-n) mode="nconfig" ;;
|
||||||
*) $err "invalid option '-$option'" ;;
|
*) $err "invalid option '-$option'" ;;
|
||||||
esac
|
esac
|
||||||
|
[ -n "${OPTARG+x}" ] || $err "OPTARG not set"
|
||||||
project="${OPTARG#src/}"; shift 2
|
project="${OPTARG#src/}"; shift 2
|
||||||
done
|
done
|
||||||
[ -z "$_f" ] && $err "missing flag (-m/-u/-b/-c/-x/-f/-s/-l/-n)"
|
[ -z "$_f" ] && $err "missing flag (-m/-u/-b/-c/-x/-f/-s/-l/-n)"
|
||||||
|
|
Loading…
Reference in New Issue