浏览代码

Improve share-link, allow rsync to bg

Bryan Roessler 3 年之前
父节点
当前提交
056e8cd274
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      share-link

+ 1 - 1
share-link

@@ -26,7 +26,7 @@ for file in "${files[@]}"; do
     fname="${file##*/}"
     random64=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 64 | head -n 1)
 	echo "rsync -a ${file} ${ssh_server}:${ssh_files_path}/${random64}/"
-	rsync -a "${file}" "${ssh_server}:${ssh_files_path}/${random64}/"
+	rsync -a "${file}" "${ssh_server}:${ssh_files_path}/${random64}/" &
 	links_array+=("$www_files_path/${random64}/${fname// /%20}")
 done