[massStorageCopy] Fix double quote issue
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
This commit is contained in:
parent
13e75cbfb3
commit
de8fb2045d
2 changed files with 6 additions and 2 deletions
|
|
@ -41,7 +41,9 @@ bin_filepath=$1
|
||||||
if [ $2 == "-O" ]; then
|
if [ $2 == "-O" ]; then
|
||||||
shift 1
|
shift 1
|
||||||
fi
|
fi
|
||||||
mountpoint_name=$2
|
# Strip first and last ""
|
||||||
|
mountpoint_name="${2%\"}"
|
||||||
|
mountpoint_name="${mountpoint_name#\"}"
|
||||||
|
|
||||||
if [ -z $bin_filepath ]; then
|
if [ -z $bin_filepath ]; then
|
||||||
echo "No binary file path provided!"
|
echo "No binary file path provided!"
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,9 @@ bin_filepath=$1
|
||||||
if [ $2 == "-O" ]; then
|
if [ $2 == "-O" ]; then
|
||||||
shift 1
|
shift 1
|
||||||
fi
|
fi
|
||||||
mountpoint_name=$2
|
# Strip first and last ""
|
||||||
|
mountpoint_name="${2%\"}"
|
||||||
|
mountpoint_name="${mountpoint_name#\"}"
|
||||||
|
|
||||||
if [ -z $bin_filepath ]; then
|
if [ -z $bin_filepath ]; then
|
||||||
echo "No binary file path provided!"
|
echo "No binary file path provided!"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue