Skip to content
Browse files

Whoops. PATH is used

  • Loading branch information...
1 parent ea27ebd commit 672972649bf485da4c03575f4686d748f419c306 @ggreer committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 util_scripts/auto_rsync.sh
View
6 util_scripts/auto_rsync.sh
@@ -6,13 +6,15 @@ then
exit 1
fi
-PATH=$1
+WATCH_PATH=$1
shift
COMMAND=$@
+echo "Watching $WATCH_PATH"
+
while true
do
- notifywait $PATH
+ notifywait $WATCH_PATH
echo "Running $COMMAND"
$COMMAND
done

0 comments on commit 6729726

Please sign in to comment.
Something went wrong with that request. Please try again.