-
-
Save RX14/e42577d3cf8b9defc99e0d7003934937 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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