diff options
| author | RubberJones <5031378+RubberJones@users.noreply.github.com> | 2025-06-25 23:46:18 +0200 |
|---|---|---|
| committer | RubberJones <5031378+RubberJones@users.noreply.github.com> | 2025-06-25 23:46:18 +0200 |
| commit | 9c4c63d3e0b49ba94e8166603717ae055a7d6f12 (patch) | |
| tree | b90c0e3552c9376e74520e4c8cdb01d62342727c /copy.sh | |
| parent | 74f3f1ec2c98e08332cff8e141604a75ceaeacbc (diff) | |
fix(copy.sh): Correct variable for resetting color in function
Replace the undefined variable $CLEAR with the correct variable $RESET.
The function attempted to reset the text color using the $CLEAR
variable, which, however, was not defined anywhere in the script.
This resulted in the color output not being reset after the
function call.
This change ensures that the correct, already defined $RESET variable
is used to reset the terminal to its default state.
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ fi # Function to print colorful text print_color() { - printf "%b%s%b\n" "$1" "$2" "$CLEAR" + printf "%b%s%b\n" "$1" "$2" "$RESET" } # Check /etc/os-release to see if this is an Ubuntu or Debian based distro |
