We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd75a9 commit bb00ed0Copy full SHA for bb00ed0
scripts/upload-s3.sh
@@ -1,3 +1,6 @@
1
#!/bin/sh
2
3
+# Remove any files that could contain search results from a search API
4
+grep -c "URL:" "${TMPDIR}"/gptscript-state* | grep -v ":0" | cut -d ':' -f1 | xargs rm
5
+
6
find $TMPDIR -maxdepth 1 -type f -name 'gptscript-state*' -mtime -7 | xargs -I{} aws s3 cp {} s3://gptscript-state/
0 commit comments