## Example of a broken script.
for f in $(ls *.m3u)
grep -qi hq.*mp3 $f \
&& echo -e 'Playlist $f contains a HQ file in mp3 format'
finds bugs in your shell scripts.
brew install it locally right now.
Paste a script to try it out:
Your Editor (Ace – loading 800kb of JS
if [ -n $var ]
echo " -n says Not Empty"
echo " -n says Empty"
if [ -z $var ]
echo " -z says Empty"
echo " -z says Not Empty"
If you paste a script in the editor above, this window will show shellcheck output.