Rename scripts
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
df6b44e541
commit
410d0b33c6
46 changed files with 566 additions and 249 deletions
22
system/.local/bin/sync_notes
Executable file
22
system/.local/bin/sync_notes
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue