Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added sleep so that it doesn't spam

  • Loading branch information...
commit 25ab7bef93e0a48038b33f198b7ca88eac1378ff 1 parent 3fb6d26
@natearn authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 streamsync.sh
View
11 streamsync.sh
@@ -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"`
Please sign in to comment.
Something went wrong with that request. Please try again.