binford2k / showoff

Don't just present; interact with your audience!
http://binford2k.github.io/showoff
MIT License
938 stars 502 forks source link

Permit `skeleton -f` file from current directory #907

Closed op-ct closed 5 years ago

op-ct commented 5 years ago

Before this change, bundle exec showoff skeleton --file=file.json would fail with:

error: same file: file.json and ./file.json 

This patch skips the FileUtils.cp with a naive test to see if the source and destination file are the same file.