mvd_transfer.sh 461 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. # small transfer script by Shaque 2012-11-22
  3. mvd="$1"
  4. game="$2"
  5. _file="$game/demos/$mvd"
  6. if [ -f "$_file" ]; then
  7. # sleep a little, so q2proded has time to finalize the demo file
  8. ( sleep 2 ) && ( echo "put $_file" | sftp -q -p someuser@aq2world.com:/demos ) &
  9. else
  10. echo "$0 Error: '$_file' not found. Not transferring anything. :("
  11. fi
  12. # vim: expandtab tabstop=2 autoindent:
  13. # kate: space-indent on; indent-width 2; mixedindent off;