plugins for wvkbd using swipeGuess
predictor: hide missing file error
Zach DeCook 2022-12-01
parent 2414e6b · commit 69f266c
-rwxr-xr-xsb_predictor.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sb_predictor.sh b/sb_predictor.sh
index f78c943..6059ce0 100755
--- a/sb_predictor.sh
+++ b/sb_predictor.sh
@@ -53,7 +53,7 @@ while read -r swipe; do
mv "$lw" "$tw"
fi
elif test "$swipe" = "$(echo -e "\x08")"; then
- lastword="$(cat "$lw")"
+ lastword="$(cat "$lw" 2>/dev/null)"
printf %s "$lastword" | sed 's/.$//g' > "$lw"
elif test "$swipe" = "$(echo -e "\n")"; then
rm -f "$lw" "$tw"