From: sto.mar@... Date: 2012-12-02T17:32:11+09:00 Subject: Re: Trouble with date Am 02.12.2012 03:14, schrieb tamouse mailing lists: > Seems to be going a long way 'round something pretty simple. > > today = Time.now.strftime("%Y%m%d") > save_path = "/Users/me/github/splat/#{today}" > system("mkdir -p #{save_path}") You can create the directories without relying on shell commands: require 'fileutils' FileUtils.mkdir_p(save_path) > # ... later > > system("git clone --mirror https://github.com/org/#{repo_name}.git > #{save_path}/#{repo_name}") > > Adjust scope on variables as necessary... --