mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-15 21:02:30 +01:00
pentoo-updater: write a log file into /tmp
This commit is contained in:
parent
d718095cad
commit
fe3d12faf7
1 changed files with 7 additions and 1 deletions
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue