Skip to content

Commit

Permalink
octave_ci.m: Avoid input prompts during Ubuntu package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Feb 9, 2024
1 parent bc44010 commit 1915dba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/ci/octave_ci.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function octave_ci (package_name, pkg_index_file)
if (! isempty (ubuntu2204))
step_group_start ("Install Ubuntu 22.04 dependencies");
system ("sudo apt-get update");
system (["sudo apt-get install --yes ", strjoin(ubuntu2204)]);
## Avoid input prompts during package installation (e.g., for tzdata)
system (["sudo DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC ", ...
"apt-get install --yes apt-utils ", strjoin(ubuntu2204)]);
step_group_end ("done.");
endif

Expand Down

0 comments on commit 1915dba

Please sign in to comment.