[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] Dont error out on undefined STAGEFILE



Title: GitLab

Joerg Jaspert pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • config/debian/dinstall.functions
    ... ... @@ -33,12 +33,12 @@ function onerror() {
    33 33
         else
    
    34 34
             subject="${subject} (interrupted)"
    
    35 35
         fi
    
    36
    -    subject="${subject} dinstall error at ${ERRDATE} in ${STAGEFILE} - (Be quiet, Brain, or I'll stab you with a Q-tip)"
    
    36
    +    subject="${subject} dinstall error at ${ERRDATE} in ${STAGEFILE:-} - (Be quiet, Brain, or I'll stab you with a Q-tip)"
    
    37 37
     
    
    38
    -    if [[ -r ${STAGEFILE}.log  ]]; then
    
    38
    +    if [[ -r ${STAGEFILE:-/nonexistant}.log  ]]; then
    
    39 39
             cat "${STAGEFILE}.log"
    
    40 40
         else
    
    41
    -        echo "file ${STAGEFILE}.log does not exist, sorry"
    
    41
    +        echo "file ${STAGEFILE:-}.log does not exist, sorry"
    
    42 42
         fi | mail -s "${subject}" -a "X-Debian: DAK" -a "From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>" cron@ftp-master.debian.org
    
    43 43
     }
    
    44 44
     
    


  • Reply to: