Project

General

Profile

Revision 3a1ab9d3

Added by Julien Enselme about 10 years ago

Correct '! -z ' to '-n'.

View differences:

bin/flush-files.sh
20 20
if [ "${number_of_backups_to_delete}" -gt 0 ] ; then
21 21
    ls | head "-${number_of_backups_to_delete}" | xargs rm
22 22
else
23
    if [ ! -z "$2" ] ; then
23
    if [ -n "$2" ] ; then
24 24
        dir=$(pwd)
25 25
        echo "There are not enough files in $dir to Flush it. Check if backup script works fine." | mail -s "[db] $dir has a backup problem" "$2"
26 26
    fi

Also available in: Unified diff