mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-06-06 14:09:55 -07:00
changed start-server a little
This commit is contained in:
@ -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}"
|
||||
|
Reference in New Issue
Block a user