fix dev scripts.

This commit is contained in:
Miroslav Šedivý 2024-06-16 16:26:48 +02:00
parent 2d8e5c9753
commit 4bd6eb6db9

View File

@ -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