scripts: get-info: exclude directories from support archive; do not prematurely exit on error

This commit is contained in:
Markus Küffner
2023-08-06 21:40:26 +02:00
parent af022b226b
commit 21cdf7efe2

View File

@@ -1,7 +1,5 @@
#!/bin/bash
set -e
if ! [ -f "docker-compose.yaml" ]; then
echo -e "
\033[1;31mMissing docker-compose.yaml\033[0m
@@ -70,7 +68,7 @@ commands=(
## Generate archive
archive_name="prind-info-$(date +%d%m%Y-%H%M%S).tar.gz"
tar -cf ${archive_name} ${tmpdir} 2> /dev/null
tar --exclude "out" --exclude "resonances" -cf ${archive_name} ${tmpdir} 2> /dev/null
## Prompt user to upload the generated file
echo -e "