small fixes
This commit is contained in:
parent
3d546ef4a6
commit
33147570df
6
push.sh
6
push.sh
|
@ -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}" && \
|
||||
|
|
Loading…
Reference in New Issue