diff options
| author | Leah Rowe <leah@libreboot.org> | 2024-06-27 02:38:22 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2024-06-27 02:44:01 +0100 | 
| commit | 9154ba5b8505797688ab1a399f985caaa60fc4d9 (patch) | |
| tree | 0f246a45f934289b30759f743ce95efccf71b69c | |
| parent | f383b1ad70f6bca76612fb0e8709188a98ed93e1 (diff) | |
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>
| -rwxr-xr-x | script/trees | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/script/trees b/script/trees index 66cc76ef..ccd45d19 100755 --- a/script/trees +++ b/script/trees @@ -31,6 +31,7 @@ main()  		-n) mode="nconfig" ;;  		*) $err "invalid option '-$option'" ;;  		esac +		[ -n "${OPTARG+x}" ] || $err "OPTARG not set"  		project="${OPTARG#src/}"; shift 2  	done  	[ -z "$_f" ] && $err "missing flag (-m/-u/-b/-c/-x/-f/-s/-l/-n)" | 
