Changeset 296


Ignore:
Timestamp:
Apr 7, 2011, 9:42:53 AM (14 years ago)
Author:
Rick van der Zwet
Message:

Also compatible with latest version of transmissiionbt which added .added files if added to queue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • transmission/torrent-sync.sh

    r295 r296  
    3232  TARGET=$TORRENTQUEUE/`basename $TORRENT`
    3333  URI=$TORRENTURL$TORRENT
    34   if [ \! -r $TARGET ]; then
     34  if [ -r $TARGET.added ]; then
     35    echo "# Torrent $TARGET already exist"
     36  elif [ -r $TARGET ]; then
     37    echo "# Torrent $TARGET already exist, but not yet added"
     38  else
    3539    echo "# Adding torrent $TARGET ($URI)"
    3640    fetch -qo $TARGET $URI
    37   else
    38     echo "# Torrent $TARGET already exist"
    3941  fi
    4042done
Note: See TracChangeset for help on using the changeset viewer.