[massStorageCopy] Fix double quote issue

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
This commit is contained in:
Frederic Pillon 2019-10-29 16:03:52 +01:00
parent 13e75cbfb3
commit de8fb2045d
2 changed files with 6 additions and 2 deletions

View file

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

View file

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