Skip to content

Commit de8fb20

Browse files
committed
[massStorageCopy] Fix double quote issue
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 13e75cb commit de8fb20

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

linux/massStorageCopy

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ bin_filepath=$1
4141
if [ $2 == "-O" ]; then
4242
shift 1
4343
fi
44-
mountpoint_name=$2
44+
# Strip first and last ""
45+
mountpoint_name="${2%\"}"
46+
mountpoint_name="${mountpoint_name#\"}"
4547

4648
if [ -z $bin_filepath ]; then
4749
echo "No binary file path provided!"

macosx/massStorageCopyMacOsX

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ bin_filepath=$1
4141
if [ $2 == "-O" ]; then
4242
shift 1
4343
fi
44-
mountpoint_name=$2
44+
# Strip first and last ""
45+
mountpoint_name="${2%\"}"
46+
mountpoint_name="${mountpoint_name#\"}"
4547

4648
if [ -z $bin_filepath ]; then
4749
echo "No binary file path provided!"

0 commit comments

Comments
 (0)