Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvAmBass committed Mar 22, 2023
1 parent 50d1d81 commit 63cefda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export IMG=$(docker build -q --pull --no-cache -t 'get-version' .)

export DEBIAN_VERSION=$(docker run --rm -t get-version cat /etc/debian_version | tail -n1 | tr -d '\r')
export APACHE_VERSION=$(docker run --rm -t get-version dpkg --list apache2 | grep '^ii' | tr ' ' '\n' | grep '[0-9]\.[0-9]'| sed 's/[+=~:]/_/g' | tr -d '\r')
export ZONEMINDER_VERSION=$(docker run --rm -t get-version dpkg --list zoneminder | grep '^ii' | sed 's/^[^0-9]*//g' | cut -d ' ' -f1 | sed 's/[+=]/_/g' | tr -d '\r')
export ZONEMINDER_VERSION=$(docker run --rm -t get-version dpkg --list zoneminder | grep '^ii' | sed 's/^[^0-9]*//g' | cut -d ' ' -f1 | sed 's/[+=~:]/_/g' | tr -d '\r')
[ -z "$DEBIAN_VERSION" ] && exit 1

export IMGTAG=$(echo "$1""d$DEBIAN_VERSION-a$APACHE_VERSION-zm$ZONEMINDER_VERSION")
Expand Down

0 comments on commit 63cefda

Please sign in to comment.