dotfiles/system/.local/bin/sync-notes
Severin Kaderli 348ece6f11
Change email in all files
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2019-03-07 17:27:17 +01:00

22 lines
444 B
Bash
Executable file

#!/usr/bin/env bash
#
# SCRIPT NAME:
# sync-notes
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Sync notes in ~/Notes using git
#
# USAGE:
# ./sync-notes
. /home/severin/.local/bin/utils
print_time_log "sync-notes" "Synchronizing notes"
cd "/home/severin/Notes" || exit
git pull > /dev/null 2>&1
git add --all > /dev/null 2>&1
git commit -s -m "Update notes" > /dev/null 2>&1
git push origin master > /dev/null 2>&1