diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-02-13 21:08:54 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-02-13 21:08:54 +0100 |
commit | f4e8ff90cc74047c5b4597bf348c6991e4a3deb9 (patch) | |
tree | eff1d5263b0907c3e03d6f9b659223f3dc1e38b9 | |
parent | 3f0d2fc9cf63a274776efc0c653f1e9d30e53183 (diff) | |
download | itzks-install-script-f4e8ff90cc74047c5b4597bf348c6991e4a3deb9.tar.gz itzks-install-script-f4e8ff90cc74047c5b4597bf348c6991e4a3deb9.tar.bz2 itzks-install-script-f4e8ff90cc74047c5b4597bf348c6991e4a3deb9.zip |
apt_install_if_not: Play tricks on bash.
-rwxr-xr-x | install-itzks-workstation | 2 |
1 files changed, 1 insertions, 1 deletions
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 |