Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ shellcheck test.sh
- In test.sh line 1:
- for i in 1;
- ^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
- ^-- SC2043: This loop will only ever run once for a constant value. Did you perhaps mean to loop over dir/*, $var or $(cmd)?
- In test.sh line 6:
- projectfolder= `ls -l| grep "1*"` ;; #trying to identify individual folders 101-121
- ^-- SC1007: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
- ^----------------^ SC2092: Remove backticks to avoid executing output.
- ^----------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
- ^-- SC2010: Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames.
- ^--^ SC2063: Grep uses regex, but this looks like a glob.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement