~stormdragon2976/bashtml

e8daae0f607415bc91f69ba82bab28a2ba3f5957 — Storm Dragon 1 year, 7 months ago a4f6440
the sync option has now been tested and seems to work.
1 files changed, 3 insertions(+), 3 deletions(-)

M bashtml.sh
M bashtml.sh => bashtml.sh +3 -3
@@ 320,19 320,19 @@ sync_to_server() {
        exit 1
    fi
    # Store arguments to rsync in a variable
    local rsyncArgs=('-hPrs')
    local rsyncArgs=('-hPrszz')
    if [[ "${settings[rsyncPasswordFile]}" != "" ]]; then
        rsyncArgs+=("--password-file=${settings[rsyncPasswordFile]}")
    fi
    if [[ "${settings[rsyncDelete],,}" == "yes" ]]; then
        rsyncArgs+=("--delete")
        rsyncArgs+=("--delete" "--delete-excluded")
    fi
    # Add any excludes to the arguments array.
    if [[ "${settings[rsyncExcludes]}" != "" ]]; then
        rsyncArgs+=("--exclude \"${settings[rsyncExcludes]// /\" --exclude \"}\"")
    fi
    # Sync the files to the server with the given settings.
    rsync ${rsyncArgs[@]} . ${settings[rsyncUser]}@${settings[rsyncAddress]}
    eval "rsync ${rsyncArgs[@]} . ${settings[rsyncUser]}@${settings[rsyncAddress]}"
}

add_header() {