From 194c66eeebdd6920716c82eeb259083d7bbd84c5 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 13 Jun 2008 14:34:19 +0000 Subject: [PATCH] Stupid error in script --- scripts/nix-http-export.cgi.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nix-http-export.cgi.in b/scripts/nix-http-export.cgi.in index 6584524c4d..ac28260d9c 100755 --- a/scripts/nix-http-export.cgi.in +++ b/scripts/nix-http-export.cgi.in @@ -30,7 +30,7 @@ if [ "$needed_path" != "${needed_path%.drv}" ]; then exit fi -if [ @bindir@/nix-store --check-validity "$full_path" ]; then +if @bindir@/nix-store --check-validity "$full_path"; then if ! [ -e nix-export/"$needed_path".nar.gz ]; then @bindir@/nix-store --export "$full_path" | @gzip@ > "$TMP_DIR"/"$needed_path".nar.gz @coreutils@/ln -fs "$TMP_DIR"/"$needed_path".nar.gz nix-export/"$needed_path".nar.gz