]> Freerunner's - dabruin.kak/commitdiff
fix: make theme working on alpinelinux
authorThomas Teixeira <thomas.teixeira@startmail.com>
Fri, 23 Aug 2024 18:41:00 +0000 (20:41 +0200)
committerThomas Teixeira <thomas.teixeira@startmail.com>
Fri, 23 Aug 2024 18:41:00 +0000 (20:41 +0200)
README.md
dabruin.sh

index 01180c779e876c631851f9c4ef89203b79f7748a..ae21b883d1ce7ec14522f6b935b340aeea01e529 100644 (file)
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ So, I wrote a simple awk script to mimic its effect, and remove the need of two
 ```sh
 ratio_calculate() {
        printf "${1##rgb:}" | fold -w2 |
-               awk --posix -v ratio="$2" '
+               awk -v ratio="$2" '
                BEGIN {
                        printf "rgb:"
                        if (ratio ~ /[0-9]+\/[0-9]+/) {
index 4658383fbe1d3cd9d497b10711099e77b714dce2..cfcab7d24b023d0f4789ee30479812ec4c2e51db 100644 (file)
@@ -9,7 +9,7 @@
 
 ratio_calculate() {
        printf "${1##rgb:}" | fold -w2 |
-               awk --posix -v ratio="$2" '
+               awk -v ratio="$2" '
                BEGIN {
                        printf "rgb:"
                        if (ratio ~ /[0-9]+\/[0-9]+/) {