From 1f2bfec83aaf022d6ee48cd5ad23a34469faf86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Thu, 17 Feb 2022 18:31:38 +0100 Subject: [PATCH] fix option --- src/Jirafeau/a.php | 3 +-- src/bash/filter.sh | 2 +- src/cpp/jirafeauAPI.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Jirafeau/a.php b/src/Jirafeau/a.php index 284d099..4f7b5d1 100644 --- a/src/Jirafeau/a.php +++ b/src/Jirafeau/a.php @@ -60,8 +60,7 @@ define ('M_REFRESH', 'Actualiser'); define ('M_LOGOUT_TOKEN', "Vous n'êtes plus connecté."); define ('M_SEND_TOKEN', "Vous allez recevoir un lien d'accès temporaire à vos données."); define ('M_INCONSISTENT_DATES', - " (dates incohéantes avec ___FILENAME___ : ".___DIRTIME___." != ".___FILETIME___." / ". - date ("Y-m-d H:i:s", ___DIRTIME___)." != ".date ("Y-m-d H:i:s", ___DIRTIME___).")"); + " (dates incohéantes avec ___FILENAME___ : ___DIRTIME___ != ___FILETIME___)"); define ('A_ACTION', 'a'); // action : T_SEND, T_LOGOUT, A_RECORD+(on|off), A_PERIOD(minute|hour|day|week|month|quarter) define ('A_GET', 'g'); // get archive diff --git a/src/bash/filter.sh b/src/bash/filter.sh index fc2fd2e..908baf6 100644 --- a/src/bash/filter.sh +++ b/src/bash/filter.sh @@ -140,7 +140,7 @@ LOG_FIC "${SHRINK_CMD} -s ${MAX_KEEP_IN_MAIL} -d ${REP_PIECE_JOINTE} ${INSPECT_D # Etape de televersement des pieces jointes PASSWORD=$(apg -n 1 -m 12) PASSWORD_MD5=$(echo -n ${PASSWORD} | ${MD5_CMD} | cut -d \ -f 1) - LOG_FIC " - \"${JIRAFEAU_CMD}\" -f \"${JIRAFEAU_LOCAL}\" -t \"${JIRAFEAU_TIME}\"-s \"${MAX_UPLOAD_SIZE}\" -c \"${ATTACH_CONTENT_TYPE}\" -n \"${ATTACH_NAME}\" send \"${ATTACH_MEDIA}\" \"${PASSWORD}\" 2>> \"${FIC_LOG}\" > \"${ONE_LINK}\"" + LOG_FIC " - \"${JIRAFEAU_CMD}\" -f \"${JIRAFEAU_LOCAL}\" -t \"${JIRAFEAU_TIME}\" -s \"${MAX_UPLOAD_SIZE}\" -c \"${ATTACH_CONTENT_TYPE}\" -n \"${ATTACH_NAME}\" send \"${ATTACH_MEDIA}\" \"${PASSWORD}\" 2>> \"${FIC_LOG}\" > \"${ONE_LINK}\"" "${JIRAFEAU_CMD}" -f "${JIRAFEAU_LOCAL}" -t "${JIRAFEAU_TIME}" -s "${MAX_UPLOAD_SIZE}" -c "${ATTACH_CONTENT_TYPE}" -n "${ATTACH_NAME}" send "${ATTACH_MEDIA}" "${PASSWORD}" 2>> "${FIC_LOG}" > "${ONE_LINK}" cat "${ONE_LINK}" | { read JIR_TOKEN diff --git a/src/cpp/jirafeauAPI.cpp b/src/cpp/jirafeauAPI.cpp index 98c25e8..17b6470 100644 --- a/src/cpp/jirafeauAPI.cpp +++ b/src/cpp/jirafeauAPI.cpp @@ -145,7 +145,7 @@ main (int argc, char** argv) { ("debug,g", bool_switch (&debugFlag), "debug mode") ("proxy,p", value (&proxy)->default_value (proxy), "set proxy (proxy-host.org:8080)") ("uploadPage,u", value (&uploadPage)->default_value (uploadPage), "upload page") - ("updatePage,t", value (&updatePage)->default_value (updatePage), "update page") + ("updatePage,v", value (&updatePage)->default_value (updatePage), "update page") ; options_description cmd ("All options");