Skip to content

Instantly share code, notes, and snippets.

@rpbaltazar
Created August 24, 2020 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpbaltazar/80f95c6deda17dbd06905c213cede041 to your computer and use it in GitHub Desktop.
Save rpbaltazar/80f95c6deda17dbd06905c213cede041 to your computer and use it in GitHub Desktop.
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