Explorar o código

Improve share-link, allow rsync to bg

Bryan Roessler %!s(int64=3) %!d(string=hai) anos
pai
achega
056e8cd274
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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