From 69f266c9c978f3485341a94d332a4005c59f7ea3 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 4 Oct 2022 23:48:06 -0400 Subject: predictor: hide missing file error --- sb_predictor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sb_predictor.sh') 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" -- cgit 1.4.1