Fix --tailscale not printing hostname
This commit is contained in:
@@ -41,7 +41,7 @@ if [ "$USE_TAILSCALE" = "1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TS_STATUS=$(tailscale status --self --json 2>&1)
|
TS_STATUS=$(tailscale status --self --json 2>/dev/null)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error: tailscale not logged in" >&2
|
echo "Error: tailscale not logged in" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user