Skip to content

Instantly share code, notes, and snippets.

@RX14

RX14/repro.cr Secret

Created March 10, 2017 23:39
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 RX14/e42577d3cf8b9defc99e0d7003934937 to your computer and use it in GitHub Desktop.
Save RX14/e42577d3cf8b9defc99e0d7003934937 to your computer and use it in GitHub Desktop.
require "file_utils"
require "json"
FOO = __DIR__ + "/foo"
BAR = __DIR__ + "/bar"
`git clone https://github.com/crystal-lang/crystal #{FOO}` unless Dir.exists?(FOO)
base_clone_path = FOO
temp_clone_path = BAR
begin
FileUtils.cp_r(base_clone_path, temp_clone_path)
JSON.parse("fffooo")
ensure
FileUtils.rm_r(temp_clone_path)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment