mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Eclipse toolchain installer now preserves executable bit on Linux
Change-Id: I55fec21cf8a972c7e6f216fed0d4cf1287959ca6
This commit is contained in:
@@ -105,7 +105,8 @@ public abstract class AbstractInstaller {
|
||||
}
|
||||
|
||||
installLocation.mkdirs();
|
||||
if (System.getProperty("os.name").startsWith("Mac OS X")) { // MACs are special...
|
||||
final String osName = System.getProperty("os.name");
|
||||
if (osName.startsWith("Mac OS X") || osName.startsWith("Linux")) { // Unix-like OSes must preserve the executable bit; call unzip
|
||||
InputStream zip = getInstallResourceStream();
|
||||
File tmpFile = File.createTempFile(getFeatureName()+"-", ".zip");
|
||||
FileOutputStream fout = new FileOutputStream(tmpFile);
|
||||
|
||||
Reference in New Issue
Block a user