Fix path of tar on Linux
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/26b14d52 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/26b14d52 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/26b14d52 Branch: refs/heads/master Commit: 26b14d52fab8327ac6064bc62491a8b9b39d2c84 Parents: f3e4bc7 Author: Justin Mclean <[email protected]> Authored: Thu Jul 18 13:26:55 2013 +1000 Committer: Justin Mclean <[email protected]> Committed: Thu Jul 18 13:26:55 2013 +1000 ---------------------------------------------------------------------- installer/src/InstallApacheFlex.mxml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/26b14d52/installer/src/InstallApacheFlex.mxml ---------------------------------------------------------------------- diff --git a/installer/src/InstallApacheFlex.mxml b/installer/src/InstallApacheFlex.mxml index 264d51e..fef7307 100644 --- a/installer/src/InstallApacheFlex.mxml +++ b/installer/src/InstallApacheFlex.mxml @@ -1646,10 +1646,17 @@ variables are not required because the locations of these pieces are known. } private function untar(source:File, destination:File, unTarCompleteFunction:Function, unTarErrorFunction:Function):void { - var tar:File = new File("/usr/bin/tar"); + var tar:File; var startupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); var arguments:Vector.<String> = new Vector.<String>(); + if (_os == LINUX_OS) { + tar = new File("/bin/tar"); + } + else { + tar = new File("/usr/bin/tar"); + } + arguments.push("xf"); arguments.push(source.nativePath); arguments.push("-C");
