Last active
October 23, 2015 16:22
-
-
Save SjB/584abad5a71b28ef8a48 to your computer and use it in GitHub Desktop.
Cake Tar function
This file contains hidden or 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
| 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