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