]> code.delx.au - mediapc-tools/blobdiff - monitor-dir
mythtv-mysql-maintenance
[mediapc-tools] / monitor-dir
index 84d35f00a33fcfd6aab93fe377d618a55e4f01b8..baf02e44a5b32eb024ddd7df9ecde4b66d7d1bf4 100755 (executable)
@@ -4,15 +4,15 @@
 #   */5 *   *   *   *     $HOME/bin/monitor-dir /path/to/something
 
 if [ -z "$1" ]; then
-       echo "Usage $0 dir [monitor_file] [ls]"
-       exit 1
+    echo "Usage $0 dir [monitor_file] [ls]"
+    exit 1
 fi
 mon="${2:-$1/.monitor_dir}"
 mon_tmp="${mon}_tmp"
 
 ${3:-ls} "$1" > "$mon_tmp"
 if [ -r "$mon" ] && ! cmp -s "$mon" "$mon_tmp" && [ -n "$(ls "$1")" ]; then
-       comm -13 "$mon" "$mon_tmp"
+    comm -13 "$mon" "$mon_tmp"
 fi
 mv "$mon_tmp" "$mon"