From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Thu, 12 Mar 2026 02:31:50 +0000 (+0300) Subject: Autocommit in repo: Mikrotiks, generated by owner: root, in 05:31:50 12.03.2026. X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=69a8eb7cc99b7c3dcb0da689028e6bfa2152e268;p=Mikrotiks%2FMikrotiks.git Autocommit in repo: Mikrotiks, generated by owner: root, in 05:31:50 12.03.2026. --- diff --git a/.gitignore b/.gitignore index 5832e5b..ee3b237 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,9 @@ # folder for backups repo -backups -.bin/logs -.gnupg -.local -.cache +backups/ +bin/logs/ +.gnupg/ +.local/ +.cache/ .bash_history #.bak # backup and temporary files diff --git a/bin/ros-diff.sh b/bin/ros-diff.sh index fe492f9..be2c8c6 100755 --- a/bin/ros-diff.sh +++ b/bin/ros-diff.sh @@ -349,8 +349,8 @@ check_directory() { #exit 0 backup_binary() { local bin_name="${1}" - local crypt="${DEFAULT_BIN_CRYPT}" - local bin_pass="${DEFAULT_BINPWD}" + local crypt="${2:-$DEFAULT_BIN_CRYPT}" + local bin_pass="${3:-$DEFAULT_BINPWD}" local log_msg local crypt_str #${SSH_STR} :put [/system script environment get [find name=BackupPassword] value];