Skip to content

Commit b551a52

Browse files
arampricejpalermo
authored andcommitted
Use long-form command flags in scripts
Terse flags only lead to obfuscation, this commit changs the short flags passed to `apt-get` to their corresponding long-form versions. The commit also adds the implicit `install` command to `apt-get`.
1 parent 0c1f376 commit b551a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stemcell_builder/lib/prelude_apply.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ git config --global --add safe.directory /opt/bosh
2424

2525
function pkg_mgr {
2626
run_in_chroot $chroot "apt-get update"
27-
run_in_chroot $chroot "export DEBIAN_FRONTEND=noninteractive;apt-get -f -y --no-install-recommends $*"
27+
run_in_chroot $chroot "export DEBIAN_FRONTEND=noninteractive; apt-get install --fix-broken --no-install-recommends --assume-yes $*"
2828
run_in_chroot $chroot "apt-get clean"
2929
}
3030

0 commit comments

Comments
 (0)