plugins for wvkbd using swipeGuess
predictor: hide missing file error
| -rwxr-xr-x | sb_predictor.sh | 2 |
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" |