From 9974dd1c4c209dd2346c17fb65b3f16ae101f5fc Mon Sep 17 00:00:00 2001 From: home Date: Wed, 22 Nov 2023 11:07:29 +0300 Subject: [PATCH] bash : revert blue colors. --- .config/bash/module/archive.sh | 10 +++++----- .config/bash/module/convert.sh | 2 +- .config/bash/module/name.sh | 14 +++++++------- .config/bash/module/pack.sh | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.config/bash/module/archive.sh b/.config/bash/module/archive.sh index 038c237..8250281 100644 --- a/.config/bash/module/archive.sh +++ b/.config/bash/module/archive.sh @@ -26,7 +26,7 @@ archive() # status info. local status="[${count}/${total}] ${target}" - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" # create archive. tar -c "${target}" | pv -s $(du -sb "${target}" | awk '{print $1}') | xz -9e > "${target%/*}".txz @@ -61,7 +61,7 @@ archive_fast() # status info. local status="[${count}/${total}] ${target}" - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" # create archive. tar -c "${target}" | pv -s $(du -sb "${target}" | awk '{print $1}') | gzip -1 > "${target%/*}".tgz @@ -109,7 +109,7 @@ archive_check() # compare hashes, show error on mismatch. if [[ "${actual}" = "${saved}" ]]; then - echo -e "${color_bblue}${status}: Validation OK.${color_default}" + echo -e "${status}: Validation OK." else echo -e "${color_bred}${status}: Validation failed.${color_default}" ((failed++)) @@ -155,7 +155,7 @@ unarchive() # extract if hash matched or show error if not. if [[ "${saved}" = "${actual}" ]]; then - echo -e "${color_bblue}${status}: Validation OK.${color_default}" + echo -e "${status}: Validation OK." # figure out the compression tool. local compressor @@ -230,7 +230,7 @@ archive_name() fi # rename. - mv -- "${target}" "${new_name}" && echo -e "${color_bblue}${status}${color_default}" || echo -e "${color_bred}${status}: Error.${color_default}" + mv -- "${target}" "${new_name}" && echo -e "${status}" || echo -e "${color_bred}${status}: Error.${color_default}" done } diff --git a/.config/bash/module/convert.sh b/.config/bash/module/convert.sh index 17ea629..a2adeba 100644 --- a/.config/bash/module/convert.sh +++ b/.config/bash/module/convert.sh @@ -32,7 +32,7 @@ convert() local status="[${count}/${total}] ${target} -> ${target%.*}.${to}" # Show status. - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" # Support multiple inputs. [[ "${to}" = "mp3" ]] && from="" diff --git a/.config/bash/module/name.sh b/.config/bash/module/name.sh index f784e22..a534934 100644 --- a/.config/bash/module/name.sh +++ b/.config/bash/module/name.sh @@ -52,7 +52,7 @@ name() mv -- "${target}" "${new_name}" &> /dev/null # show change. - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" done } @@ -102,7 +102,7 @@ name_hash() mv -- "${target}" "${new_name}" &> /dev/null # show change. - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" else # Increment count. ((count++)) @@ -144,7 +144,7 @@ name_hash_check() # compare hashes. if [[ "${stored}" = "${actual}" ]]; then - echo -e "${color_bblue}${status}: Validation OK.${color_default}" + echo -e "${status}: Validation OK." 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_bblue}${status}${color_default}" + echo -e "${status}" else # Increment count. ((count++)) @@ -272,7 +272,7 @@ name_manga() mv -- "${target}" "${new_name}" &> /dev/null # Show status. - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" else # Increment count. ((count++)) @@ -327,7 +327,7 @@ name_ext() mv -- "${target}" "${new_name}" &> /dev/null # show change. - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" else # Increment count. ((count++)) @@ -375,7 +375,7 @@ name_prefix() mv -- "${target}" "${new_name}" &> /dev/null # Show change. - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" done } diff --git a/.config/bash/module/pack.sh b/.config/bash/module/pack.sh index 19e4861..791ff77 100644 --- a/.config/bash/module/pack.sh +++ b/.config/bash/module/pack.sh @@ -80,7 +80,7 @@ unpack() local status="[${count}/${total}] ${target}" # show status. - echo -e "${color_bblue}${status}${color_default}" + echo -e "${status}" # unpack file type. local type="${target##*.}"