Skip to content
Snippets Groups Projects
Commit 07fecb6d authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- scan_dir() gets a dirname to check

parent 84e2897a
Branches
No related tags found
No related merge requests found
...@@ -173,7 +173,7 @@ scan_file() { ...@@ -173,7 +173,7 @@ scan_file() {
} }
scan_dir() { scan_dir() {
find "$WATCH_FOLDER" -type f -print0| while IFS= read -r -d '' filename; do find "$1" -type f -print0| while IFS= read -r -d '' filename; do
scan_file "$filename" scan_file "$filename"
done done
} }
...@@ -188,5 +188,5 @@ if [ "$WITH_DAEMON" -eq 1 ]; then ...@@ -188,5 +188,5 @@ if [ "$WITH_DAEMON" -eq 1 ]; then
else else
# cli mode, scan watch folder once # cli mode, scan watch folder once
echo "checking dir $WATCH_FOLDER" echo "checking dir $WATCH_FOLDER"
scan_dir scan_dir "$WATCH_FOLDER"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment