瀏覽代碼

-p preserve file attributes

Paul Klumpp 12 年之前
父節點
當前提交
5b81cfbebe
共有 1 個文件被更改,包括 1 次插入1 次删除
  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