From f4e8ff90cc74047c5b4597bf348c6991e4a3deb9 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 13 Feb 2018 21:08:54 +0100 Subject: apt_install_if_not: Play tricks on bash. --- 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 3063168..ff6025f 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 -n "$install_pkgs" && apt-get install -y $install_pkgs + test -z "$install_pkgs" || apt-get install -y $install_pkgs ret=$? set -e return $ret -- cgit v1.2.3