Skip to content

Commit b01b36f

Browse files
committed
(tasks) Add apt-get to install_linux install_package()
Should allow for older debian based systems that predate apt.
1 parent 740505e commit b01b36f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/install_linux.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ install_package() {
226226
exec_and_capture zypper install -y "$_package"
227227
elif exists 'apt'; then
228228
exec_and_capture apt install -y "$_package"
229+
elif exists 'apt-get'; then
230+
exec_and_capture apt-get install -y "$_package"
229231
else
230-
fail "Unable to install ${_package}. Neither dnf, yum, zypper, nor apt are installed."
232+
fail "Unable to install ${_package}. Neither dnf, yum, zypper, apt nor apt-get are installed."
231233
fi
232234
}
233235

0 commit comments

Comments
 (0)