sapphrc/usr/bin/sapphrc_updown
Penelope Gwen d1e3075c37 v1.2.2
2024-04-09 01:29:09 -06:00

18 lines
353 B
Bash
Executable file

#!/bin/bash
source /lib/sapphrc/sapphrc-functions
source /lib/sapphrc/sapphrc-font
validate_backupdir
cd "$HOME/.config/sapphrc/backups"
sapphrc_backup
gs="$(git status | grep -i 'modified')"
git fetch origin
reslog=$(git log HEAD..origin/main --oneline)
if [[ "${reslog}" != "" ]];then
#remote changes exist
sapphrc_restore
fi
sapphrc_push
exit