From f889c9663d1e31eea74a5d69277b8752b9241f19 Mon Sep 17 00:00:00 2001 From: desktop Date: Fri, 10 Nov 2023 00:18:50 +0300 Subject: [PATCH] archive & name : update colors. --- .linux/bash/module/archive.sh | 10 +++++----- .linux/bash/module/name.sh | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.linux/bash/module/archive.sh b/.linux/bash/module/archive.sh index 635851e..9928625 100644 --- a/.linux/bash/module/archive.sh +++ b/.linux/bash/module/archive.sh @@ -35,7 +35,7 @@ archive() mv "${target%/*}".txz "${target%/*}"_${date}-$(pv "${target%/*}".txz | sha1sum | cut -d\ -f1).txz # report success. - echo -e "${color_green}${status}: Done.${color_default}" + echo -e "${color_default}${status}: Done.${color_default}" done } @@ -70,7 +70,7 @@ archive_fast() mv "${target%/*}".tgz "${target%/*}"_${date}-$(pv "${target%/*}".tgz | sha1sum | cut -d\ -f1).tgz # report success. - echo -e "${color_green}${status}: Done.${color_default}" + echo -e "${color_default}${status}: Done.${color_default}" done } @@ -109,7 +109,7 @@ archive_check() # compare hashes, show error on mismatch. if [[ "${actual}" = "${saved}" ]]; then - echo -e "${color_green}${status}: Validation OK.${color_default}" + echo -e "${color_default}${status}: Validation OK.${color_default}" else echo -e "${color_bred}${status}: Validation failed.${color_default}" ((failed++)) @@ -179,7 +179,7 @@ unarchive() fi # report extraction complete. - echo -e "${color_green}${status}: Done.${color_default}" + echo -e "${color_default}${status}: Done.${color_default}" done } @@ -232,7 +232,7 @@ archive_name() fi # rename. - mv -- "${target}" "${new_name}" && echo -e "${color_green}${status}${color_default}" || echo -e "${color_bred}${status}: Error.${color_default}" + mv -- "${target}" "${new_name}" && echo -e "${color_default}${status}${color_default}" || echo -e "${color_bred}${status}: Error.${color_default}" done } diff --git a/.linux/bash/module/name.sh b/.linux/bash/module/name.sh index 20f8a59..e3c0b27 100644 --- a/.linux/bash/module/name.sh +++ b/.linux/bash/module/name.sh @@ -52,7 +52,7 @@ name() mv -- "${target}" "${new_name}" &> /dev/null # show change. - echo -e "${color_green}${status}${color_default}" + echo -e "${color_default}${status}${color_default}" done } @@ -102,7 +102,7 @@ name_hash() mv -- "${target}" "${new_name}" &> /dev/null # show change. - echo -e "${color_green}${status}${color_default}" + echo -e "${color_default}${status}${color_default}" else # Increment count. ((count++)) @@ -144,7 +144,7 @@ name_hash_check() # compare hashes. if [[ "${stored}" = "${actual}" ]]; then - echo -e "${color_green}${status}: Validation OK.${color_default}" + echo -e "${color_default}${status}: Validation OK.${color_default}" else echo -e "${color_bred}${status}: Validation failed.${color_default}" ((failed++)) @@ -214,7 +214,7 @@ name_series() mv -- "${target}" "${new_name}" &> /dev/null # Report status. - echo -e "${color_green}${status}${color_default}" + echo -e "${color_default}${status}${color_default}" else # Increment count. ((count++)) @@ -272,7 +272,7 @@ name_manga() mv -- "${target}" "${new_name}" &> /dev/null # Show status. - echo -e "${color_green}${status}${color_default}" + echo -e "${color_default}${status}${color_default}" else # Increment count. ((count++)) @@ -327,7 +327,7 @@ name_ext() mv -- "${target}" "${new_name}" &> /dev/null # show change. - echo -e "${color_green}${status}${color_default}" + echo -e "${color_default}${status}${color_default}" else # Increment count. ((count++)) @@ -375,7 +375,7 @@ name_prefix() mv -- "${target}" "${new_name}" &> /dev/null # Show change. - echo -e "${color_green}${status}${color_default}" + echo -e "${color_default}${status}${color_default}" done }