Skip to content

Instantly share code, notes, and snippets.

@SjB
Last active October 23, 2015 16:22
Show Gist options
  • Select an option

  • Save SjB/584abad5a71b28ef8a48 to your computer and use it in GitHub Desktop.

Select an option

Save SjB/584abad5a71b28ef8a48 to your computer and use it in GitHub Desktop.
Cake Tar function
Action<FilePath, DirectoryPath> Tar = delegate(FilePath src, DirectoryPath dst) {
Information("tar xf {0} -C {1}", src.ToString(), dst.ToString());
var processArgs = new ProcessArgumentBuilder();
processArgs.Append("-C {1} -x -f {0} ", src.ToString(), dst.ToString());
StartProcess("tar", new ProcessSettings { Arguments = processArgs });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment