From db463525e90735e5338a882ba0bd3d65939c82a7 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Mon, 23 Jan 2023 23:33:00 -0500 Subject: [PATCH] Fixed clipboard_translator. It was refusing to run if or exiting if for some reason the clipboard was empty. --- speech/clipboard_translator.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/speech/clipboard_translator.sh b/speech/clipboard_translator.sh index b3df40f..7a267b2 100755 --- a/speech/clipboard_translator.sh +++ b/speech/clipboard_translator.sh @@ -3,7 +3,8 @@ # Modified from the script at: # https://gist.github.com/fdietze/6768a0970d7d732b7fbd7930ccceee2a -set -Eeuo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/#:~:text=set%20%2Du,is%20often%20highly%20desirable%20behavior. +# The next line has been commented because if there's nothing in clipboard the script breaks. +# set -Eeuo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/#:~:text=set%20%2Du,is%20often%20highly%20desirable%20behavior. shopt -s expand_aliases