Merge pull request #99 from fradelg/bugfix/ci

Bugfix/ci
This commit is contained in:
Fco. Javier Delgado del Hoyo 2023-01-19 20:22:16 +01:00 committed by GitHub
commit 37334bf3c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -10,14 +10,14 @@ on:
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Test Bash scripts
run: sudo apt-get -qq update && sudo apt-get install -y devscripts shellcheck && make test
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: test
steps:
- name: Checkout the code

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
data

View file

@ -6,7 +6,7 @@ test:
# Checking for syntax errors
set -e; for SCRIPT in *.sh; \
do \
sh -n $$SCRIPT; \
bash -n $$SCRIPT; \
done
# Checking for bashisms (currently not failing, but only listing)

View file

@ -47,7 +47,7 @@ do
if [ -n "$MAX_BACKUPS" ]
then
# Execute the delete script, delete older backup or other custom delete script
/delete.sh $db $EXT
/delete.sh "$db" $EXT
fi
else
rm -rf "$FILENAME"

1
run.sh
View file

@ -18,7 +18,6 @@ fi
function final_backup {
echo "=> Captured trap for final backup"
DATE=$(date +%Y%m%d%H%M)
echo "=> Requested last backup at $(date "+%Y-%m-%d %H:%M:%S")"
exec /backup.sh
exit 0