From 60d40612870edd98bf8a713b286ba502f3e95fe1 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 10 Nov 2025 20:47:24 +0100 Subject: polybar: Run script on platform only if it exists --- polybar/plat.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/polybar/plat.sh b/polybar/plat.sh index b8797f6..d58208e 100755 --- a/polybar/plat.sh +++ b/polybar/plat.sh @@ -3,4 +3,7 @@ PLAT=$(uname) SCRIPT_DIR=$(dirname "$(readlink -f "$0")") -"${SCRIPT_DIR}/${PLAT}-${1}.sh" +SCRIPT="${SCRIPT_DIR}/${PLAT}-${1}.sh" +if [ -f "${SCRIPT}" ]; then + "${SCRIPT}" +fi -- cgit v1.2.3