Skip to content

Commit 1f28baf

Browse files
committed
feat(actions): use OMA_NO_BELL, OMA_NO_PROGRESS to handle non-terminal usage
1 parent 727377f commit 1f28baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const DEFAULT_MOUNTS: &[(&str, &str)] = &[
1919
("CACHE", "/var/cache/apt/archives"),
2020
];
2121
const APT_UPDATE_SCRIPT: &str = r#"export DEBIAN_FRONTEND=noninteractive;apt-get update -y --allow-releaseinfo-change && apt-get -y -o Dpkg::Options::="--force-confnew" full-upgrade --autoremove --purge"#;
22-
const OMA_UPDATE_SCRIPT: &str = r#"oma upgrade -y --force-confnew --no-progress --force-unsafe-io && oma autoremove -y --no-progress --remove-config"#;
22+
const OMA_UPDATE_SCRIPT: &str = r#"export OMA_NO_BELL=1 OMA_NO_PROGRESS=1;oma upgrade -y --force-confnew --force-unsafe-io && oma autoremove -y --remove-config"#;
2323

2424
type MountOptions = (Vec<String>, Vec<(String, &'static str)>);
2525
/// Ensure that the directories exist and mounted

0 commit comments

Comments
 (0)