summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2017-09-10 22:24:30 +0200
committerAndreas Politz <politza@hochschule-trier.de>2017-09-10 22:50:45 +0200
commit3daf752a8718d4d439971e60ebee461c20b6931b (patch)
tree41a8b4b4dda472105fcbd90ceee10a46107b46c6
parent9f5436bf7799369a66e109ec9b5047c67da768ad (diff)
Remove useless condition
-rwxr-xr-xserver/autobuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/autobuild b/server/autobuild
index 2cdba9f..e371608 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -210,11 +210,9 @@ os_nixos() {
if ! which nix-shell >/dev/null 2>&1; then
return 1
fi
- if [ -z "$AUTOBUILD_NIX_SHELL" ]; then
- command="AUTOBUILD_NIX_SHELL=true; export AUTOBUILD_NIX_SHELL; $0"
- exec nix-shell --pure --command "$command" \
- -p gcc gnumake automake autoconf pkgconfig libpng zlib poppler
- fi
+ command="AUTOBUILD_NIX_SHELL=true; export AUTOBUILD_NIX_SHELL; $0"
+ exec nix-shell --pure --command "$command" \
+ -p gcc gnumake automake autoconf pkgconfig libpng zlib poppler
}
## +-----------------------------------------------------------+