tpost.sh: insert all ags files - ags-upload - Insert AGS files to a database
(HTM) git clone git://src.adamsgaard.dk/ags-upload
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 2ac532c6bc6353cf8fb2512a15c2e3d3a5d56022
(DIR) parent 45a97a4157d52c94b8b58be7d6bc788b7e5f7238
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 8 Oct 2025 11:44:45 +0200
post.sh: insert all ags files
Diffstat:
M cmd/post.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/cmd/post.sh b/cmd/post.sh
t@@ -1,2 +1,5 @@
#!/bin/sh
-curl -X POST http://localhost:8080/ingest/ags -F "file=@../input/282-CPT-R5-Final.ags"
+for f in ../input/*.ags ../input/*.AGS
+do
+ curl -X POST http://localhost:8080/ingest/ags -F "file=@$f"
+done