bundle autoupdate somehow bin/stopwatch.sh is not executable fix #2601

This commit is contained in:
rusefillc 2021-04-28 23:15:45 -04:00
parent cdf5821844
commit e1a60f10a5
3 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,7 @@
#!/bin/bash
cd console
java -jar rusefi_autoupdate.jar version
java -jar rusefi_autoupdate.jar version
# https://github.com/rusefi/rusefi/issues/2601
chmod +x bin/*.sh

View File

@ -2,4 +2,7 @@
cd console
java -jar rusefi_autoupdate.jar release
echo Release update done.
echo Release update done.
# https://github.com/rusefi/rusefi/issues/2601
chmod +x bin/*.sh

View File

@ -12,6 +12,11 @@ public class FileUtil {
ZipInputStream zis = new ZipInputStream(new FileInputStream(zipFileName));
ZipEntry zipEntry = zis.getNextEntry();
while (zipEntry != null) {
/**
* drama: java API does not have access to file permission meta info
* apache commons compress does
* https://stackoverflow.com/questions/1050560/maintain-file-permissions-when-extracting-from-a-zip-file-using-jdk-5-api
*/
File newFile = newFile(destDir, zipEntry);
if (zipEntry.isDirectory()) {
if (!newFile.isDirectory()) {