Auto commit: 2024-11-08 20:35:02

This commit is contained in:
Daniel Fichtinger 2024-11-08 20:35:02 -05:00
parent 41f27cb66d
commit 4f7c77e12b
2 changed files with 7 additions and 2 deletions

View file

@ -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