From a9c95145e8b3d9a46a4597e4c4c5d4ac77ad18db Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Sun, 6 Jul 2025 18:36:26 +0000 Subject: nginx, in deployment --- upchud.tcl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'upchud.tcl') diff --git a/upchud.tcl b/upchud.tcl index 6e39fd6..823ca09 100755 --- a/upchud.tcl +++ b/upchud.tcl @@ -5,6 +5,7 @@ # --- # Directory to place the files to. set outdir "out/" +set keep_outdir 0 # The lenght of the random name every file is assigned. # Setting it to 0 disables random name mangling. set mangle_lenght 6 @@ -186,8 +187,11 @@ if { ![file isdirectory $outdir] } { file mkdir $outdir } set output_name [get_out_name $original_name] eval $write_file $output_name -send_success $output_name - +if { $keep_outdir } { + send_success $output_name +} else { + send_success [file tail $output_name] +} ## Notes # This is a very useful debug snippet: # -- cgit v1.2.3