~stormdragon2976/bashtml

123459df5498e14af09cd1a2f01b9a3ec06ec808 — Storm Dragon 1 year, 7 months ago e8daae0
Added pre and post sync plugin calls.
1 files changed, 4 insertions(+), 0 deletions(-)

M bashtml.sh
M bashtml.sh => bashtml.sh +4 -0
@@ 319,6 319,8 @@ sync_to_server() {
        echo "No user name specified. Please edit your .bashtmlrc file and configure the rsync settings."
        exit 1
    fi
    # Presync plugins
    run_plugins presync
    # Store arguments to rsync in a variable
    local rsyncArgs=('-hPrszz')
    if [[ "${settings[rsyncPasswordFile]}" != "" ]]; then


@@ 333,6 335,8 @@ sync_to_server() {
    fi
    # Sync the files to the server with the given settings.
    eval "rsync ${rsyncArgs[@]} . ${settings[rsyncUser]}@${settings[rsyncAddress]}"
    # Postsync plugins
    run_plugins postsync
}

add_header() {