Skip to content

Commit 6ace2eb

Browse files
committed
use sh to run the script on linux and windows #1714
1 parent a9a378b commit 6ace2eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

io.sloeber.core/src/io/sloeber/core/api/CompileDescription.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ public String getCustomSizeCommand() {
253253
public String getEnvValue() {
254254
switch (this) {
255255
case ARDUINO_WAY:
256-
return Common.makeEnvironmentVar(ENV_KEY_BUILD_PATH) + SLACH + ARDUINO_SIZE;
256+
if(isLinux||isMac) {
257+
return "sh "+ Common.makeEnvironmentVar(ENV_KEY_BUILD_PATH) + SLACH +ARDUINO_SIZE;
258+
}
259+
return Common.makeEnvironmentVar(ENV_KEY_BUILD_PATH) + SLACH +ARDUINO_SIZE;
257260
case AVR_ALTERNATIVE:
258261
return "${sloeber.size_command.avr}"; //$NON-NLS-1$
259262
case RAW_RESULT:

0 commit comments

Comments
 (0)