common: Allow undefined $gsu_errors.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 3 Mar 2015 17:28:19 +0000 (18:28 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 3 Mar 2015 17:28:19 +0000 (18:28 +0100)
commit1e5e330b7a100636ef7d3874a322e7c23d7fe575
tree078c83a1c7a89cb70efbd8f5477fae71bf418b41
parent8c4ae5b0f1b839dea40d7aae40de5e15b325ff35
common: Allow undefined $gsu_errors.

If this variable is undefined, and the nounset option is turned on
(set -u), gsu aborts early when setting up the gsu_error_txt array.

Fix this by using ${gsu_errors:-} instead of plain $gsu_errors to
allow for scripts without error codes.

Reported by Congmao Wang.
common