diff options
| author | Christoph <code@c.onl> | 2025-11-10 20:47:24 +0100 |
|---|---|---|
| committer | Christoph <code@c.onl> | 2025-11-10 21:05:14 +0100 |
| commit | 60d40612870edd98bf8a713b286ba502f3e95fe1 (patch) | |
| tree | 702ba1aba7fe4bed0003cea55dd90d26adf587ea /polybar | |
| parent | 974d27a5ee0f31f2143060a0a23e2c9521f1ccb7 (diff) | |
| download | dots-60d40612870edd98bf8a713b286ba502f3e95fe1.tar.gz | |
polybar: Run script on platform only if it exists
Diffstat (limited to 'polybar')
| -rwxr-xr-x | polybar/plat.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 |