pentoo-updater: write a log file into /tmp

This commit is contained in:
Rick Farina (Zero_Chaos) 2019-05-07 12:35:25 -04:00
parent d718095cad
commit fe3d12faf7
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -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)"