Created
April 12, 2019 13:57
-
-
Save SterlingButters/c9a12b6617977ca1334d3ec060297839 to your computer and use it in GitHub Desktop.
Syncs oDrive files in the pwd (does not recurse into sub-dirs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in ./*; do | |
if [[ "$file" = *.cloud ]]; then | |
echo "File[$file] not synced" | |
/usr/bin/python /home/sterlingbutters/.odrive-agent/bin/odrive.py sync "$file" | |
elif [[ "$file" = *.cloudf ]]; then | |
echo "File[$file] not synced" | |
/usr/bin/python /home/sterlingbutters/.odrive-agent/bin/odrive.py sync "$file" | |
else | |
echo "Skipping File[$file]: (Already Synced)" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment