Browse Source

Improve share-link, allow rsync to bg

Bryan Roessler 3 years ago
parent
commit
056e8cd274
1 changed files with 1 additions and 1 deletions
  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