]> git.xolatile.top Git - emil-up.chud.cyou.git/commitdiff
remove broken script used during prototyping
authoranon <anon@anon.anon>
Sat, 5 Jul 2025 11:12:20 +0000 (13:12 +0200)
committeranon <anon@anon.anon>
Sat, 5 Jul 2025 11:12:20 +0000 (13:12 +0200)
upchud-test.sh [deleted file]

diff --git a/upchud-test.sh b/upchud-test.sh
deleted file mode 100755 (executable)
index 6bf91d3..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-
-TCL_SCRIPT="./upchud.tcl"
-TEST_FILE="example.png"
-#TEST_FILE="example.txt"
-TCLSH_CMD="$(command -v tclsh)"
-
-# verify files exist
-if [[ ! -x "$TCL_SCRIPT" ]]; then
-  echo "ERROR: cannot execute $TCL_SCRIPT" >&2
-  exit 1
-fi
-if [[ ! -f "$TEST_FILE" ]]; then
-  echo "ERROR: test file $TEST_FILE not found" >&2
-  exit 1
-fi
-
-CONTENT_LENGTH=$(wc -c < "$TEST_FILE")
-export CONTENT_LENGTH
-
-export HTTP_CONTENT_DISPOSITION="form-data; name=\"file\"; filename=\"$TEST_FILE\""
-
-echo "Uploading '$TEST_FILE' ($CONTENT_LENGTH bytes) to $TCL_SCRIPT"
-OUT_NAME=$("$TCLSH_CMD" "$TCL_SCRIPT" < "$TEST_FILE")
-
-echo "Script response:\n $OUT_NAME"