From 4bd6eb6db99a797ee2058136cc95221ece9052ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 16 Jun 2024 16:26:48 +0200 Subject: [PATCH] fix dev scripts. --- dev/serve | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/serve b/dev/serve index d4cb3689..ec27c9b9 100755 --- a/dev/serve +++ b/dev/serve @@ -13,6 +13,10 @@ if [ -z $NEKO_HOST ]; then fi done + if [ -z $NEKO_HOST ]; then + NEKO_HOST=$(hostname -I 2>/dev/null | awk '{print $1}') + fi + if [ -z $NEKO_HOST ]; then NEKO_HOST=$(hostname -i 2>/dev/null) fi