From 69a2d649bcf82f75695ade98fa39199742a08535 Mon Sep 17 00:00:00 2001 From: INOUETAICHI Date: Tue, 15 Nov 2022 02:27:39 +0900 Subject: [PATCH] Resolve upload issues on macOS Ventura The df -l option on macOS Ventura ignores Mass Storage Volume of STM32. If you remove the -l option it works fine. --- macosx/massStorageCopy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/massStorageCopy.sh b/macosx/massStorageCopy.sh index 84c738271..0f176d15b 100755 --- a/macosx/massStorageCopy.sh +++ b/macosx/massStorageCopy.sh @@ -67,7 +67,7 @@ done # Search the mountpoint IFS=' ,\t' read -ra mnt_list <<< "$mountpoint_name" for mnt in "${mnt_list[@]}"; do - mnt_path_list=($(df -Hl | grep -v "Mounted on" | rev | cut -d' ' -f1 | rev | sort -u | grep "$mnt")) + mnt_path_list=($(df -H | grep -v "Mounted on" | rev | cut -d' ' -f1 | rev | sort -u | grep "$mnt")) if [ ${#mnt_path_list[@]} -ne 0 ]; then # Ensure to have exact match for mnt_path in "${mnt_path_list[@]}"; do