Update main.sh

This commit is contained in:
Rawley Fowler
2022-04-26 15:19:31 -05:00
committed by GitHub
parent 013facbade
commit 179c0196f1

View File

@@ -1,7 +1,9 @@
#!/bin/sh
# WIP: Do not use this at the moment
# This script is to be run by your init service, such as rc.d
# WIP: Do not use this at the moment.
if [ -e "main" ]; then
$1/main >> /var/log/rawleyxyz/log 2>&1
else
go build "$1/main.go" && $1/main &> /var/log/rawleyxyz/log
go build "$1/main.go"
$1/main >> /var/log/rawleyxyz/log 2>&1
fi