From: Thomas Teixeira Date: Fri, 23 Aug 2024 18:41:00 +0000 (+0200) Subject: fix: make theme working on alpinelinux X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=894538589422a0880917144cb824ee8513022069;p=dabruin.kak fix: make theme working on alpinelinux --- diff --git a/README.md b/README.md index 01180c7..ae21b88 100644 --- 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]+/) { diff --git a/dabruin.sh b/dabruin.sh index 4658383..cfcab7d 100644 --- a/dabruin.sh +++ b/dabruin.sh @@ -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]+/) {