From fe3d12faf7715334267827899ce00dd1940a31e3 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 7 May 2019 12:35:25 -0400 Subject: [PATCH] pentoo-updater: write a log file into /tmp --- scripts/pentoo-updater.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/pentoo-updater.sh b/scripts/pentoo-updater.sh index caa778021..d2354eb4e 100755 --- a/scripts/pentoo-updater.sh +++ b/scripts/pentoo-updater.sh @@ -1,4 +1,10 @@ -#!/bin/sh +#!/bin/bash + +#this is bash specific +exec > >(tee -i /tmp/pentoo-updater.log) +exec 2> >(tee -i /tmp/pentoo-updater.log >& 2) +#end bash specific + WE_FAILED=0 if [ -n "$(command -v id 2> /dev/null)" ]; then USERID="$(id -u 2> /dev/null)"