not process empty line on scp

This commit is contained in:
Nguyen Huu Thuong
2020-06-12 03:20:07 +02:00
parent 52caa45a82
commit 5c3a02ae97
3 changed files with 16 additions and 13 deletions

View File

@@ -93,7 +93,10 @@ executeSCP() {
while IFS= read -r LINE; do
delimiter="=>"
LINE=`echo $LINE`
LINE=$(echo $LINE)
if [[ -z "${LINE}" ]]; then
continue
fi
s=$LINE$delimiter
arr=()
while [[ $s ]]; do