about summary refs log tree commit diff
path: root/sb_predictor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sb_predictor.sh')
-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"