 
 base = __dirname + "/data/gists-clones/"
 timeouts = []
+
+winshellCheck = (cmd) ->
+    return if os.platform() == 'win32' then cmd.replace(';','&') else cmd
 
 done = (err, pruned) ->
   console.log "done writing files"

      console.log "already got", gist.id
      # we want to be able to pull recently modified gists
      cmd = "cd #{userfolder}/#{gist.id}; git pull origin master"
      shell.exec cmd, (code, huh, message) ->
        if code or message
          console.log gist.id, user, code, message

        cmd = "cd #{userfolder};git clone https://#{token}@gist.github.com/#{gist.id}"
      else
        cmd = "cd #{userfolder};git clone git@gist.github.com:#{gist.id}"
      cmd = winshellCheck(cmd)
      shell.exec cmd, (code, huh, message) ->
        if code or message
          console.log gist.id, user, code, message
