diff options
| author | Emil Williams | 2025-07-06 18:36:26 +0000 |
|---|---|---|
| committer | Emil Williams | 2025-07-06 18:36:26 +0000 |
| commit | a9c95145e8b3d9a46a4597e4c4c5d4ac77ad18db (patch) | |
| tree | f2854e0b06f1222bd88c5268f2849b01abc52b69 /upchud.tcl | |
| parent | be96ef3c69aa497dd0a663de6cc3318fa7d77893 (diff) | |
| download | emil-up.chud.cyou-a9c95145e8b3d9a46a4597e4c4c5d4ac77ad18db.tar.xz emil-up.chud.cyou-a9c95145e8b3d9a46a4597e4c4c5d4ac77ad18db.tar.zst | |
nginx, in deployment
Diffstat (limited to 'upchud.tcl')
| -rwxr-xr-x | upchud.tcl | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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: # |
