Auto commit: 2024-11-08 20:35:02
This commit is contained in:
parent
41f27cb66d
commit
4f7c77e12b
2 changed files with 7 additions and 2 deletions
|
@ -19,10 +19,12 @@ done
|
|||
# Commit and push if there are changes
|
||||
if [[ -n $(yadm status --porcelain) ]]; then
|
||||
yadm commit -m "Auto commit: $(date +'%Y-%m-%d %H:%M:%S')"
|
||||
# Check if the ssh-agent env is present
|
||||
if [ -f ~/.ssh/agent_env ]; then
|
||||
source "$HOME/.ssh/environment-dpad"
|
||||
yadm push
|
||||
else
|
||||
echo "hi"
|
||||
echo "ERROR: ssh-agent environment not found, aborting push..."
|
||||
exit
|
||||
fi
|
||||
yadm push
|
||||
fi
|
||||
|
|
|
@ -138,3 +138,6 @@
|
|||
1 file changed, 2 insertions(+)
|
||||
[main a86a696] Auto commit: 2024-11-08 20:25:02
|
||||
1 file changed, 2 insertions(+)
|
||||
[main 41f27cb] Auto commit: 2024-11-08 20:30:02
|
||||
2 files changed, 7 insertions(+)
|
||||
hi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue