]> Git [git.vados.ru] :: Repos - Mikrotiks/Mikrotiks.git/commitdiff
Autocommit in repo: , generated by owner: mikro_bak, in 01:20:02 05.04.2026.
authorvados-dev <vados@vados.ru>
Sat, 4 Apr 2026 22:20:03 +0000 (01:20 +0300)
committervados-dev <vados@vados.ru>
Sat, 4 Apr 2026 22:20:03 +0000 (01:20 +0300)
bin/ros-diff.sh

index 17a16faded8b19d24aa43d359c6d21719761d295..4d5049d9f4436bb68df293c548712091804dcbcf 100755 (executable)
@@ -300,7 +300,7 @@ compare_config() {
 
     diff "${diff_args[@]}" ${config_file} ${precedent_file} >${diff_file}
     if [ "$?" -ne "0" ]; then
-        log_msg="- There is a difference! Create backup..."
+        log_msg=${diff_file}" - There is a difference! Create backup..."
         if [ -t 1 ] && $DEBUG_OUT; then
             section " CREATE BACKUP "
             sleep 1
@@ -308,7 +308,7 @@ compare_config() {
         log_info "${log_msg}"
         return 0
     else
-        log_msg="- The files are identical. No backup is required."
+        log_msg=${diff_file}" - The files are identical. No backup is required."
         log_info "${log_msg}"
         if [ -t 1 ] && $DEBUG_OUT; then
             section " START CLEANUP "