Skip to content

Instantly share code, notes, and snippets.

@amlcurran
Last active June 2, 2017 13:58
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 amlcurran/635c9442b76b5dc8fe12af7d2df1ef44 to your computer and use it in GitHub Desktop.
Save amlcurran/635c9442b76b5dc8fe12af7d2df1ef44 to your computer and use it in GitHub Desktop.
Report
#!/bin/bash
if hash lines 2>/dev/null ; then
if [ -f imports.txt -o -f lines.txt ]; then
echo "Previous import.txt and/or lines.txt exist! Delete them first."
exit
fi
imports > imports.txt && lines > lines.txt
open imports.txt lines.txt
else
echo "Don't have lines or import installed!"
echo "Get them from https://github.com/novoda/spikes/tree/master/code-review-tools"
echo "Don't forget to add them to your bash path."
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment