diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-10-04 23:48:06 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-12-01 18:51:21 -0500 |
| commit | 69f266c9c978f3485341a94d332a4005c59f7ea3 (patch) | |
| tree | 4a92433d51d3274b63c7c7a81e8e52146b7a6f4b /sb_predictor.sh | |
| parent | 2414e6b200348b7c37b44ff77a9ba668b92dc9c6 (diff) | |
| download | SwipeBehaviors-69f266c9c978f3485341a94d332a4005c59f7ea3.tar.gz | |
predictor: hide missing file error
Diffstat (limited to 'sb_predictor.sh')
| -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" |
