47 lines
2.1 KiB
Diff
47 lines
2.1 KiB
Diff
From b0c97adfda1dd3281e56e0813f9f1198af0b10d0 Mon Sep 17 00:00:00 2001
|
|
From: Qiumiao Zhang <zhangqiumiao1@huawei.com>
|
|
Date: Fri, 26 May 2023 22:24:51 +0800
|
|
Subject: [PATCH] fix missing quotation in filetransfer.sh
|
|
|
|
---
|
|
usr/Euler/project/load/filetransfer.sh | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/usr/Euler/project/load/filetransfer.sh b/usr/Euler/project/load/filetransfer.sh
|
|
index 7066f25..7aa479d 100644
|
|
--- a/usr/Euler/project/load/filetransfer.sh
|
|
+++ b/usr/Euler/project/load/filetransfer.sh
|
|
@@ -72,7 +72,7 @@ function mountDirectory()
|
|
mountCheckPath="`echo $mountpoint | sed "s/[\/]\{2,\}/\//g" | sed "s/\/$//g"`"
|
|
|
|
#check bemountedpoint or mountpoint is already mounted
|
|
- if [ -n "` cat /proc/mounts | grep " $mountCheckPath " | grep $bemountedpoint`" ];then
|
|
+ if [ -n "`cat /proc/mounts | grep " $mountCheckPath " | grep $bemountedpoint`" ];then
|
|
g_LOG_Info "$mountCheckPath has been mounted"
|
|
return 1
|
|
fi
|
|
@@ -349,16 +349,16 @@ function parseUrl()
|
|
TMP_PARAMS=`echo ${serverUrl} | awk -F "?" '{print $2}'`
|
|
if [ -n "${TMP_PARAMS}" ]; then
|
|
tempPattern=`echo ${TMP_PARAMS} | awk -F "@" '{print $1}'`
|
|
- if echo "${tempPattern} | grep -q "^[u|U]=.*$"; then
|
|
+ if echo "${tempPattern}" | grep -q "^[u|U]=.*$"; then
|
|
userName=`echo ${tempPattern} | awk -F "=" '{print $2}'`
|
|
- elif echo "${tempPattern} | grep -q "^[p|P]=.*$"; then
|
|
+ elif echo "${tempPattern}" | grep -q "^[p|P]=.*$"; then
|
|
password=`echo ${tempPattern} | awk -F "=" '{print $2}'`
|
|
fi
|
|
|
|
tempPattern=`echo ${TMP_PARAMS} | awk -F "@" '{print $2}'`
|
|
- if echo "${tempPattern} | grep -q "^[u|U]=.*$"; then
|
|
+ if echo "${tempPattern}" | grep -q "^[u|U]=.*$"; then
|
|
userName=`echo ${tempPattern} | awk -F "=" '{print $2}'`
|
|
- elif echo "${tempPattern} | grep -q "^[p|P]=.*$"; then
|
|
+ elif echo "${tempPattern}" | grep -q "^[p|P]=.*$"; then
|
|
password=`echo ${tempPattern} | awk -F "=" '{print $2}'`
|
|
fi
|
|
|
|
--
|
|
2.27.0
|
|
|