From de8fb2045ddd658d914e25848c5603df5db09489 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 29 Oct 2019 16:03:52 +0100 Subject: [PATCH] [massStorageCopy] Fix double quote issue Signed-off-by: Frederic Pillon --- linux/massStorageCopy | 4 +++- macosx/massStorageCopyMacOsX | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linux/massStorageCopy b/linux/massStorageCopy index 8467d5f5..f4d86493 100755 --- a/linux/massStorageCopy +++ b/linux/massStorageCopy @@ -41,7 +41,9 @@ bin_filepath=$1 if [ $2 == "-O" ]; then shift 1 fi -mountpoint_name=$2 +# Strip first and last "" +mountpoint_name="${2%\"}" +mountpoint_name="${mountpoint_name#\"}" if [ -z $bin_filepath ]; then echo "No binary file path provided!" diff --git a/macosx/massStorageCopyMacOsX b/macosx/massStorageCopyMacOsX index c6cc9fbd..c994b322 100755 --- a/macosx/massStorageCopyMacOsX +++ b/macosx/massStorageCopyMacOsX @@ -41,7 +41,9 @@ bin_filepath=$1 if [ $2 == "-O" ]; then shift 1 fi -mountpoint_name=$2 +# Strip first and last "" +mountpoint_name="${2%\"}" +mountpoint_name="${mountpoint_name#\"}" if [ -z $bin_filepath ]; then echo "No binary file path provided!"