From 1033df72fabf599a32c9d99d5273c279e881fa64 Mon Sep 17 00:00:00 2001 From: Roy Date: Mon, 8 Apr 2019 17:25:18 +0200 Subject: [PATCH 1/2] Allow stlink_upload to work with home dir names containing spaces --- tools/macosx/stlink_upload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/macosx/stlink_upload b/tools/macosx/stlink_upload index 486bb3927..b2b4217b5 100755 --- a/tools/macosx/stlink_upload +++ b/tools/macosx/stlink_upload @@ -1,2 +1,2 @@ #!/bin/bash -$(dirname $0)/stlink/st-flash write "$1" 0x8000000 +"$(dirname "$0")"/stlink/st-flash write "$4" 0x8000000 From 1420557c0b7eac5ba7693c59c6f743aa6722e8b8 Mon Sep 17 00:00:00 2001 From: Roy Date: Mon, 8 Apr 2019 17:28:32 +0200 Subject: [PATCH 2/2] Allow stlink_upload to work with home dir names containing spaces --- tools/macosx/stlink_upload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/macosx/stlink_upload b/tools/macosx/stlink_upload index b2b4217b5..cb40548fa 100755 --- a/tools/macosx/stlink_upload +++ b/tools/macosx/stlink_upload @@ -1,2 +1,2 @@ #!/bin/bash -"$(dirname "$0")"/stlink/st-flash write "$4" 0x8000000 +"$(dirname "$0")"/stlink/st-flash write "$1" 0x8000000