about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2008-06-13T14·34+0000
committerMichael Raskin <7c6f434c@mail.ru>2008-06-13T14·34+0000
commit194c66eeebdd6920716c82eeb259083d7bbd84c5 (patch)
tree9e86903b8155b090ffd2b3e9795a0e4e1df600ca /scripts
parentf903d86740c918176bf299a114a03a49a17aa0b9 (diff)
Stupid error in script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nix-http-export.cgi.in2
1 files changed, 1 insertions, 1 deletions
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