From 2ebe41eb8682a6901d7e4fb94ca58a92481dd6bd Mon Sep 17 00:00:00 2001 From: rawleyIfowler Date: Wed, 23 Feb 2022 16:51:36 -0600 Subject: [PATCH] added directory flag to daemon script --- main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.sh b/main.sh index 1373268..2c7f482 100755 --- a/main.sh +++ b/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