added directory flag to daemon script
This commit is contained in:
4
main.sh
4
main.sh
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# WIP: Do not use this at the moment
|
||||
if [ -e "main" ]; then
|
||||
./main >> /var/log/rawleyxyz/log 2>&1
|
||||
$1/main >> /var/log/rawleyxyz/log 2>&1
|
||||
else
|
||||
go build "main.go" && ./main &> /var/log/rawleyxyz/log
|
||||
go build "$1/main.go" && $1/main &> /var/log/rawleyxyz/log
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user