Skip to content

Commit

Permalink
Remove trailing slash from path if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
mesaprotector authored Dec 20, 2024
1 parent 4eaf66f commit 4036d1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prefill.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4036d1b

Please # to comment.