dotfiles/system/.local/bin/sync_notes
Severin Kaderli 410d0b33c6
Rename scripts
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2019-03-06 16:53:16 +01:00

22 lines
450 B
Bash
Executable file

#!/usr/bin/env bash
#
# SCRIPT NAME:
# sync_notes
#
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>
#
# 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