From 0f0355fd01076b96ac80dd4ccb7316faf09381fb Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 30 Dec 2021 02:59:44 +0000 Subject: [PATCH] fix inline --- scripts/dark-variant.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/dark-variant.sh b/scripts/dark-variant.sh index 0b6a9dd..3c6a9c1 100755 --- a/scripts/dark-variant.sh +++ b/scripts/dark-variant.sh @@ -24,8 +24,10 @@ elif [[ "$1" == "ts" ]]; then echo "FIX: classList found, but color tag wasn't in it" fi else - echo "found inline @ " $l ", " $(sed -n "${l}p" $f) - sed -i "${l},${l}s/~${color}/~${color} dark:~d_${color}/g" $f + echo "found inline in " $f " @ " $l ", " $(sed -n "${l}p" $f) + for color in neutral positive urge warning info critical; do + sed -i "${l},${l}s/~${color}/~${color} dark:~d_${color}/g" $f + done fi done done