From 7253645bb15827a4e55ef005e87e6611850b3f17 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 29 Oct 2023 16:51:20 +0000 Subject: [PATCH] bin/maic: set pipefail to fail in case maim was cancelled --- bin/maic | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/maic b/bin/maic index bdbb82f..1385b54 100755 --- a/bin/maic +++ b/bin/maic @@ -1,3 +1,5 @@ #!/usr/bin/env bash +set -o pipefail + maim -q --select --hidecursor "$@" | xclip -selection clipboard -t image/png -- 2.48.1