There was an error while loading. Please reload this page.
1 parent 58c8b7f commit 2fc37c8Copy full SHA for 2fc37c8
1 file changed
functions/packages.bash
@@ -968,7 +968,8 @@ install_grott() {
968
echo "$(timestamp) [openHABian] Installing Grott Proxy..."
969
970
# Get default IPv4 address
971
- local ipAddress="$(ip route get 8.8.8.8 | awk '{print $7}' | xargs)"
+ local ipAddress
972
+ ipAddress="$(ip route get 8.8.8.8 | awk '{print $7}' | xargs)"
973
if ! [[ "$ipAddress" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
974
echo "FAILED (invalid ip address ${ipAddress})"
975
exit 1
0 commit comments