Skip to content

Commit 2fc37c8

Browse files
openhabianopenhabian
authored andcommitted
fix shellcheck error
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
1 parent 58c8b7f commit 2fc37c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

functions/packages.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,8 @@ install_grott() {
968968
echo "$(timestamp) [openHABian] Installing Grott Proxy..."
969969

970970
# Get default IPv4 address
971-
local ipAddress="$(ip route get 8.8.8.8 | awk '{print $7}' | xargs)"
971+
local ipAddress
972+
ipAddress="$(ip route get 8.8.8.8 | awk '{print $7}' | xargs)"
972973
if ! [[ "$ipAddress" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
973974
echo "FAILED (invalid ip address ${ipAddress})"
974975
exit 1

0 commit comments

Comments
 (0)