1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

ArchiveExtractor was not making symlinks the right way

This commit is contained in:
Federico Fissore
2015-03-30 17:12:38 +02:00
parent ecde17b6e2
commit 1fcd6ff1ce
2 changed files with 5 additions and 5 deletions

View File

@ -216,8 +216,8 @@ public class Platform {
return System.getProperty("os.arch");
}
public void symlink(File something, File somewhere) throws IOException, InterruptedException {
Process process = Runtime.getRuntime().exec(new String[]{"ln", "-s", something.getAbsolutePath(), somewhere.getAbsolutePath()}, null, null);
public void symlink(String something, File somewhere) throws IOException, InterruptedException {
Process process = Runtime.getRuntime().exec(new String[]{"ln", "-s", something, somewhere.getAbsolutePath()}, null, somewhere.getParentFile());
process.waitFor();
}