aboutsummaryrefslogtreecommitdiffstats
path: root/copy.sh
diff options
context:
space:
mode:
authorRubberJones <5031378+RubberJones@users.noreply.github.com>2025-06-25 23:46:18 +0200
committerRubberJones <5031378+RubberJones@users.noreply.github.com>2025-06-25 23:46:18 +0200
commit9c4c63d3e0b49ba94e8166603717ae055a7d6f12 (patch)
treeb90c0e3552c9376e74520e4c8cdb01d62342727c /copy.sh
parent74f3f1ec2c98e08332cff8e141604a75ceaeacbc (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-xcopy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/copy.sh b/copy.sh
index b405a777..88b42abf 100755
--- a/copy.sh
+++ b/copy.sh
@@ -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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage