21 lines
No EOL
357 B
Bash
21 lines
No EOL
357 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# SCRIPT NAME:
|
|
# sync-drive
|
|
#
|
|
# AUTHOR:
|
|
# Severin Kaderli <severin@kaderli.dev>
|
|
#
|
|
# DESCRIPTION:
|
|
# Syncs Google Drive folder
|
|
#
|
|
# USAGE:
|
|
# ./sync-drive
|
|
. /home/severin/.local/bin/utils
|
|
|
|
if [ ! -d "/home/severin/documents" ]; then
|
|
exit
|
|
fi
|
|
|
|
print_time_log "sync-drive" "Syncing with Google Drive"
|
|
grive -d -p /home/severin/documents/ |