summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-08-08 02:11:44 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-08-08 02:11:44 +0300
commit424d41761d819e127309af0c31837b91f2bb24a1 (patch)
treeee8a33763aace0d7cf6fde3e2f34ed917794b311
parent057b07b214def74248628a841f95045e3e85028c (diff)
Write comparison with double quotes
-rwxr-xr-xfunctions/colors.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/colors.zsh b/functions/colors.zsh
index 71ca7c9a..f4f211ca 100755
--- a/functions/colors.zsh
+++ b/functions/colors.zsh
@@ -313,7 +313,7 @@ function foregroundColor() {
# into ZSH-Style color codes.
function getColorCode() {
# Early exit: Check if given value is already numerical
- if [[ "$1" = <-> ]]; then
+ if [[ "$1" == <-> ]]; then
# Pad color with zeroes
echo -n "${(l:3::0:)1}"
return