Guest User

Untitled

a guest
Mar 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. site="hello"
  4. wDir="/home/websites/${site}/httpdocs/"
  5.  
  6. for file in $(find "${wDir}" -name "*.css")
  7. do
  8. echo "$file";
  9. done
  10. exit 0;
  11.  
  12. root@me /scripts/ # shellcheck test.sh
  13.  
  14. In test.sh line 6:
  15. for file in $(find "${wDir}" -name "*.css")
  16. ^-- SC2044: For loops over find output are fragile. Use find -exec or a while read loop.
Add Comment
Please, Sign In to add comment