Commit Graph

5 Commits

Author SHA1 Message Date
Olivier Gayot 6d88618b9e Make sure test-this-branch.sh exits if distro-info is not installed
Although the script is running with -e, having two distinct invocations
of a subshell in the same instruction masks failures in the first
subshell invocation. It is similar in essence to what the pipefail
option controls.

As a consequence, the following instruction does not fail if distro-info
is not installed:

  isoname=$(distro-info -d)-live-server-$(dpkg --print-architecture).iso

And therefore, we end up with something like:

  isoname=-live-server-amd64.iso

Fixed by first assigning the value of $(distro-info -d) to a variable.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-01-04 17:38:43 +01:00
Lucas Kanashiro 8cfa8c64d4 scripts/test-this-branch.sh: install needed dependencies 2020-08-22 14:11:52 -03:00
Paride Legovini a23c554af3 test-this-branch.sh: fix the ISO file name 2019-08-22 14:41:38 +02:00
Michael Hudson-Doyle fae35af6ee fix subquity -> subiquity typos, including in script name 2017-08-23 10:26:09 +12:00
Michael Hudson-Doyle a94f0f2f43 add another helper script 2017-08-23 10:20:44 +12:00