From 4036d1bb247961df96fce704461ceb71c5db8a29 Mon Sep 17 00:00:00 2001 From: mesaprotector <162765448+mesaprotector@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:53:15 -0800 Subject: [PATCH] Remove trailing slash from path if necessary --- prefill.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prefill.sh b/prefill.sh index 2e3a858..3d31c96 100644 --- a/prefill.sh +++ b/prefill.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Remove trailing slash in statedir if necessary. +_statedir="`echo "$statedir" | sed -s 's/\/$//g'`" +statedir="$_statedir" # Watch a file and push the string `kitty-launch` to the device listed in the # file if it is ever modified. while true; do