Permalink
Browse files

added sleep so that it doesn't spam

  • Loading branch information...
natearn committed May 26, 2012
1 parent 3fb6d26 commit 25ab7bef93e0a48038b33f198b7ca88eac1378ff
Showing with 8 additions and 3 deletions.
  1. +8 −3 streamsync.sh
View
@@ -4,7 +4,12 @@
# 1. support file paths and names in all arguments
# 2. replace .* with a more specific list of extensions
-while [ -e "$1" ]; do
- rsync --inplace --progress "$1" "$2"/"$1"
+while [ -e "$1.*" ]; do
+ rsync --inplace --progress "$1.*" "$2"/`basename "$1"`
+ if [ -z $3 ]; then
+ sleep $3
+ else
+ sleep 10
+ fi
done
-rsync --inplace --progress "$1" "$2"/"$1"
+rsync --inplace --progress "$1" "$2"/`basename "$1"`

0 comments on commit 25ab7be

Please sign in to comment.