Skip to content

Commit

Permalink
Development (Unimatrix0#14)
Browse files Browse the repository at this point in the history
* Actually Fix IP parsing
  • Loading branch information
Unimatrix0 authored Nov 19, 2017
1 parent d0a39da commit 6d9a2e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update_ombi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ declare -i verbosity=-1
############################################

name="update_ombi"
version="1.1.01"
version="1.1.02"
SECONDS=0

while [ $# -gt 0 ]; do
Expand Down Expand Up @@ -137,7 +137,7 @@ if [ -e $ombiservicefile ]; then
parseresults+="Group: $group, "
fi
url=$(grep -Po '(?<=\-\-host )(http://.+)$' <<< "$ombiservice")
ip=$(grep -Po '(?<=http://)([\d\.]+):' <<< "$url")
ip=$(grep -Po '(?<=http://)((\d{1,3}\.){3}\d{1,3})(?=:)' <<< "$url")
if [ -n "${ip}" ]; then
parseresults+="IP: $ip, "
fi
Expand Down

0 comments on commit 6d9a2e8

Please sign in to comment.