diff --git a/sync.sh b/sync.sh old mode 100644 new mode 100755 index 7106803..84c8f65 --- a/sync.sh +++ b/sync.sh @@ -7,7 +7,7 @@ while true do #last_changed=$(find . -mmin -1) # Update if file changed 10 seconds ago -last_changed=$(find . -type f -newermt "10 seconds ago") +last_changed=$(find . -newermt "10 seconds ago") if [ "$last_changed" != "" ]; then git add * git commit -m 'sync'