From 2a6a04b6ae3e76effb995b167de7e52e85f0392e Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 9 Dec 2024 09:13:59 -0500 Subject: update commits, fix hyprland ambiguous, fix `update-commits` script to get timestamps correctly --- scripts/guix-retry | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/guix-retry (limited to 'scripts/guix-retry') 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 -- cgit v1.2.3-freya