changed start-server a little

This commit is contained in:
2024-09-16 22:57:49 -07:00
parent 2bac7dadb5
commit e60781069e

View File

@ -1,11 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
command="./main.fnl"
kill_command="pkill -f 'main\.fnl'"
log_file="log"
usage="Usage: start-server [-h] [--localhost] [-l] [--log-file] [-k]
usage="Usage: start-server [options]
Options:
-h, --help Show this help message and exit
@ -34,4 +34,4 @@ for (( i=1; i<=$#; i++ )); do
done
$kill_command
eval "${command} & disown"
eval "${command}"