Skip to content

Commit bb00ed0

Browse files
authored
chore: upload s3: remove files containing search results (#151)
Signed-off-by: Grant Linville <[email protected]>
1 parent ccd75a9 commit bb00ed0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/upload-s3.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/bin/sh
22

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+
36
find $TMPDIR -maxdepth 1 -type f -name 'gptscript-state*' -mtime -7 | xargs -I{} aws s3 cp {} s3://gptscript-state/

0 commit comments

Comments
 (0)