Changes between Version 1 and Version 2 of Scripts/EmailNotifier


Ignore:
Timestamp:
May 4, 2009, 8:51:08 PM (12 years ago)
Author:
Waldorf
Comment:

#2026 - version 1.1

Legend:

Unmodified
Added
Removed
Modified
  • Scripts/EmailNotifier

    v1 v2  
    2424#----------------------------------------------------------------------------
    2525# 04 May 2009 | A.Galanin <gaa.nnov AT mail.ru> | Creation                  |
     26# 04 May 2009 | A.Galanin <gaa.nnov AT mail.ru> | Usage moved before locking|
    2627#----------------------------------------------------------------------------
    2728
     
    7374
    7475# initialization
     76if [ $# != 0 ]
     77then
     78    echo "$0: check for finished downloads in Transmission"
     79    echo "USAGE: $0"
     80    exit 1
     81fi
     82
    7583lockfile-create "$LOCK_FILE" || (echo "Unable to lock lockfile!"; exitAndClean 2)
    7684lockfile-touch "$LOCK_FILE" &
     
    8593# generate netrc file for RPC authorisation
    8694printf "machine %s\nlogin %s\npassword %s\n" "$HOST" "$USER" "$PASS" > "$TMP_FILE"
    87 
    88 if [ $# != 0 ]
    89 then
    90     echo "$0: check for finished downloads in Transmission"
    91     echo "USAGE: $0"
    92     exit 1
    93 fi
    9495
    9596# main