diff options
author | Freya Murphy <freya@freyacat.org> | 2024-12-09 09:13:59 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-12-09 09:13:59 -0500 |
commit | 2a6a04b6ae3e76effb995b167de7e52e85f0392e (patch) | |
tree | 24a9b926d802d839cb1364abac73d3982ba4eb27 /scripts/guix-retry | |
parent | fix element-desktop: firefox segfaults in nonguix electron (diff) | |
download | dotfiles-guix-2a6a04b6ae3e76effb995b167de7e52e85f0392e.tar.gz dotfiles-guix-2a6a04b6ae3e76effb995b167de7e52e85f0392e.tar.bz2 dotfiles-guix-2a6a04b6ae3e76effb995b167de7e52e85f0392e.zip |
update commits, fix hyprland ambiguous, fix `update-commits` script to get timestamps correctly
Diffstat (limited to 'scripts/guix-retry')
-rwxr-xr-x | scripts/guix-retry | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/guix-retry b/scripts/guix-retry new file mode 100755 index 0000000..c504048 --- /dev/null +++ b/scripts/guix-retry @@ -0,0 +1,21 @@ +#!/bin/sh + +error="write_to_session_record_port" + +# create redirection +# file descripters +exec 11>&1 # stdout +exec 22>&2 # stderr + +while true; do + # send stdout to stdout + # send stderr though pipe + output=$("$@" 2>&1 1>&11 | tee >(cat - >&22)) # return stderr to + # normal stderr as well + + # check if error is in stderr + if echo "$output" | grep -q "$error"; then + continue + fi + break +done |