diff options
-rwxr-xr-x | install-itzks-workstation | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/install-itzks-workstation b/install-itzks-workstation index 575c61d..3063168 100755 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -13,7 +13,11 @@ 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 |