From 22724f8d0beebc1aa89c8f09eb2de98bc115591e Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 13 Feb 2018 21:11:37 +0100 Subject: Revert "apt_install_if_not: Catch apt-get exit code and return that." This reverts commit 3f0d2fc9cf63a274776efc0c653f1e9d30e53183. --- install-itzks-workstation | 4 ---- 1 file changed, 4 deletions(-) diff --git a/install-itzks-workstation b/install-itzks-workstation index 3063168..575c61d 100755 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -13,11 +13,7 @@ function apt_install_if_not() { for pkg in $pkgs; do [ -d "/usr/share/doc/$pkg" ] || install_pkgs="$install_pkgs $pkg" done - set +e test -n "$install_pkgs" && apt-get install -y $install_pkgs - ret=$? - set -e - return $ret } # Add user locadm if not already there -- cgit v1.2.3