aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index cf4965d..42bc50a 100755
--- a/install.sh
+++ b/install.sh
@@ -30,7 +30,12 @@ if [ -z "$udt" ]; then
echo " expected at $repo/../unified-desktop-theme" >&2
exit 1
fi
-"$udt/bin/udt-palette"
+
+# udt's install.sh calls this script, and it has already run udt-palette by
+# then. Running it again would be harmless but pointless, so it says so.
+if [ "${UDT_PALETTE_DONE:-}" != "1" ]; then
+ "$udt/bin/udt-palette"
+fi
install -Dm644 "$udt/templates/waybar/theme.css" "$target/styles/theme.css"
# The dot scripts are bash, not CSS, so they cannot read @define-color. Write