Skip to content

Commit

Permalink
F #4089: update distro discovery for DH images (#4897)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian González authored Jun 8, 2020
1 parent f9c8148 commit 724e683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datastore_mad/remotes/docker_downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ mkdir -p $dockerdir/mnt

# Check distro
if [ -z $distro ]; then
distro=`docker run --rm \
distro=`docker run --rm --entrypoint cat \
-e "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
$docker_hub cat /etc/os-release | grep "^ID=.*\n" | cut -d= -f 2 | xargs`
$docker_hub /etc/os-release | grep "^ID=.*\n" | cut -d= -f 2 | xargs`
fi

if [ -z $distro ]; then
Expand Down

0 comments on commit 724e683

Please sign in to comment.