mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-06-07 05:09:51 -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"
|
command="./main.fnl"
|
||||||
kill_command="pkill -f 'main\.fnl'"
|
kill_command="pkill -f 'main\.fnl'"
|
||||||
|
|
||||||
log_file="log"
|
log_file="log"
|
||||||
|
|
||||||
usage="Usage: start-server [-h] [--localhost] [-l] [--log-file] [-k]
|
usage="Usage: start-server [options]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help Show this help message and exit
|
-h, --help Show this help message and exit
|
||||||
@ -34,4 +34,4 @@ for (( i=1; i<=$#; i++ )); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
$kill_command
|
$kill_command
|
||||||
eval "${command} & disown"
|
eval "${command}"
|
||||||
|
Reference in New Issue
Block a user