From 4ed657239143f4886b7a922c509525948d2eeb6f Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 13 Feb 2018 21:11:35 +0100 Subject: Revert "apt_install_if_not: Play tricks on bash." This reverts commit f4e8ff90cc74047c5b4597bf348c6991e4a3deb9. --- install-itzks-workstation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install-itzks-workstation') diff --git a/install-itzks-workstation b/install-itzks-workstation index ff6025f..3063168 100755 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -14,7 +14,7 @@ function apt_install_if_not() { [ -d "/usr/share/doc/$pkg" ] || install_pkgs="$install_pkgs $pkg" done set +e - test -z "$install_pkgs" || apt-get install -y $install_pkgs + test -n "$install_pkgs" && apt-get install -y $install_pkgs ret=$? set -e return $ret -- cgit v1.2.3