Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rubocop-loop.sh
# /bin/bash
x=0
while [ $x -eq 0 ]
do
rubocop -C false -a -F | grep 'offense detected' &> /dev/null
x=$?
echo "Finished $x"
done
echo $x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.