Pārlūkot izejas kodu

-p preserve file attributes

Paul Klumpp 12 gadi atpakaļ
vecāks
revīzija
5b81cfbebe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      mvd_transfer.sh

+ 1 - 1
mvd_transfer.sh

@@ -6,7 +6,7 @@ game="$2"
 _file="$game/demos/$mvd"
 
 if [ -f "$_file" ]; then
-	scp "$_file"  your_domain@here.com:/home/user/public_html/q2demos/   &
+	scp -p "$_file"  your_domain@here.com:/home/user/public_html/q2demos/   &
 else
 	echo "$0 Error: '$_file' not found. Not transferring anything. :("
 fi