small fixes

This commit is contained in:
teldra 2022-06-26 18:30:52 +02:00
parent 3d546ef4a6
commit 33147570df
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
#!/bin/bash
if ! git switch "${date}"; then
git switch -c ${date} origin/main
fi
date="$(date +%Y-%m-%d)-test"
changedfiles=$(git diff --name-status|awk '{print $2}')
if ! git switch "${date}"; then
git switch -c ${date} origin/main
fi
set -x
git add . && \
git commit -m "${date}: ${changedfiles}" && \