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!"