From 5a16f5172db403e5a1e67b4ed508d9f10630d91a Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Wed, 21 Jun 2023 20:58:17 -0700 Subject: [PATCH] added sturcture for updates --- file_fixes_and_new_services/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file_fixes_and_new_services/test.sh b/file_fixes_and_new_services/test.sh index 295324e..19cd31b 100644 --- a/file_fixes_and_new_services/test.sh +++ b/file_fixes_and_new_services/test.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -(date && test.sh) >> /var/lib/beacons/awesome.log - +exec 3>&1 4>&2 +trap 'exec 2>&4 1>&3' 0 1 2 3 exec 1> /var/lib/beacons/awesome.log 2>&1 #### CHECK TO SEE IF IT HAS BEEN RUN BEFORE ####