Project

General

Profile

Revision fd64390e

Added by Julien Enselme about 10 years ago

We remove local sql if the script fails

View differences:

other-scripts/d7-sync.sh
62 62
if [ $ret -ne 0 ] ; then
63 63
    echo "mysql daemon is not started. Exiting."
64 64
    ssh assos "rm $remote_sql_file"
65
    rm $sql_file
65 66
    exit 1
66 67
fi
67 68
mysql -u root $1 < $sql_file

Also available in: Unified diff