about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-10-04 23:48:06 -0400
committerZach DeCook <zachdecook@librem.one>2022-12-01 18:51:21 -0500
commit69f266c9c978f3485341a94d332a4005c59f7ea3 (patch)
tree4a92433d51d3274b63c7c7a81e8e52146b7a6f4b
parent2414e6b200348b7c37b44ff77a9ba668b92dc9c6 (diff)
downloadSwipeBehaviors-69f266c9c978f3485341a94d332a4005c59f7ea3.tar.gz
predictor: hide missing file error
-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"