mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-15 04:30:55 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddddddd1f3 |
+1
-4
@@ -57,10 +57,7 @@ Thumbs.db
|
|||||||
# bench benchmark related (local artifacts, not committed)
|
# bench benchmark related (local artifacts, not committed)
|
||||||
/bench/
|
/bench/
|
||||||
/Dockerfile.bench
|
/Dockerfile.bench
|
||||||
/Dockerfile.bench.v2
|
/Dockerfile.bench.v2backups/
|
||||||
|
|
||||||
# scripts/backup.sh output (database dumps, data archives)
|
|
||||||
backups/
|
|
||||||
|
|
||||||
# posture probe raw output
|
# posture probe raw output
|
||||||
posture-runs/
|
posture-runs/
|
||||||
|
|||||||
+3
-1
@@ -31,7 +31,9 @@ while [ $# -gt 0 ]; do
|
|||||||
*) echo "unknown option: $1" >&2; usage >&2; exit 2 ;;
|
*) echo "unknown option: $1" >&2; usage >&2; exit 2 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
case "$KEEP" in (*[!0-9]*|'') echo "--keep must be a positive integer" >&2; exit 2 ;; esac
|
# 0* rejects 0, which would make prune delete the dump this run just wrote, and
|
||||||
|
# leading zeros, which $((KEEP + 1)) would read as octal.
|
||||||
|
case "$KEEP" in (*[!0-9]*|''|0*) echo "--keep must be a positive integer" >&2; exit 2 ;; esac
|
||||||
|
|
||||||
# Compose reads .env for credentials; source it for the dump command too.
|
# Compose reads .env for credentials; source it for the dump command too.
|
||||||
if [ -f .env ]; then
|
if [ -f .env ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user