Explorar o código

require pub key auth solely so proc won't stuck

Paul Klumpp %!s(int64=12) %!d(string=hai) anos
pai
achega
60a1f57903
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mvd_transfer.sh

+ 1 - 1
mvd_transfer.sh

@@ -7,7 +7,7 @@ _file="$game/demos/$mvd"
 
 if [ -f "$_file" ]; then
   # sleep a little, so q2proded has time to finalize the demo file
-  ( sleep 2 ) && ( echo "put $_file" | sftp -q -p someuser@aq2world.com:/demos ) &
+  ( sleep 2 ) && ( echo "put $_file" | sftp -q -o PasswordAuthentication=no -p someuser@aq2world.com:/demos ) &
 else
   echo "$0 Error: '$_file' not found. Not transferring anything. :("
 fi