Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- site="hello"
- wDir="/home/websites/${site}/httpdocs/"
- for file in $(find "${wDir}" -name "*.css")
- do
- echo "$file";
- done
- exit 0;
- root@me /scripts/ # shellcheck test.sh
- In test.sh line 6:
- for file in $(find "${wDir}" -name "*.css")
- ^-- SC2044: For loops over find output are fragile. Use find -exec or a while read loop.
Add Comment
Please, Sign In to add comment