Project

General

Profile

Revision 15ed27d8

Added by Julien Enselme over 9 years ago

Use getopts to print help and to parse script arguments.

View differences:

bin/flush-individual-databases-backups.sh
9 9
for dir in $(ls) ; do
10 10
    cd "${dir}"
11 11
    if [ "$1" = 'auto' ] ; then
12
        flush-files.sh "${db_individual_auto_backup_number}" "${email_multi_assos}"
12
        flush-files.sh -n "${db_individual_auto_backup_number}" -m "${email_multi_assos}"
13 13
    else
14
        flush-files.sh "${db_individual_manual_backup_number}"
14
        flush-files.sh -n "${db_individual_manual_backup_number}"
15 15
    fi
16 16
    cd -
17 17
done

Also available in: Unified diff