piped stderr and stdout to stdout log file

This commit is contained in:
rawleyIfowler
2022-02-23 16:42:17 -06:00
parent 3acaa20611
commit 4d688d71d3

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# WIP: Do not use this at the moment
if [ -e "main" ]; then
./main &> /var/log/rawleyxyz/log
./main >> /var/log/rawleyxyz/log 2>&1
else
go build "main.go" && ./main &> /var/log/rawleyxyz/log
fi