From ee363a48886402532eb8181a4c5a382bcbd5b8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Thu, 5 Dec 2019 17:08:30 +0000 Subject: [PATCH] Allow for nonexistence of .colourvars --- convert.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/convert.sh b/convert.sh index 8c5b31e..4864bc9 100755 --- a/convert.sh +++ b/convert.sh @@ -2,6 +2,13 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +touch ~/.colourvars +echo LINE1=239 > ~/.colourvars +echo LINE2=239 >> ~/.colourvars +echo LINE3=239 >> ~/.colourvars +echo LINE4=239 >> ~/.colourvars +echo LINE5=239 >> ~/.colourvars + c1=$(sed '2!d' ~/.cache/wal/colors) line1=$(python3 ${DIR}/colours.py ${c1}[1:]) touch ${DIR}/var.txt