From 817f1c7ba3b2bd43b2ed7164b90008871850b913 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 7 Mar 2020 14:25:04 +0000 Subject: Add not condition --- scripts/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 8a1f71b..266a0ee 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,11 +1,10 @@ #!/bin/bash -if [[ -z $NIX ]]; then - if [[ $NIX -eq 0 ]]; then +if ! [[ -z $NIX ]]; then + if [[ $NIX -eq 0 ]]; then cabal update cabal build else nix-build fi fi - -- cgit