Merge pull request #104 from thewtex/DoNotCreateContainerOnUpdate

dockcross: Do not leave dangling container on update-script
This commit is contained in:
Matt McCormick 2017-01-25 18:38:10 -05:00 committed by GitHub
commit bef31b599a

View File

@ -34,11 +34,11 @@ help:update-image() {
}
command:update-script() {
if cmp -s <( docker run $FINAL_IMAGE ) $0; then
if cmp -s <( docker run --rm $FINAL_IMAGE ) $0; then
echo $0 is up to date
else
echo -n Updating $0 '... '
docker run $FINAL_IMAGE > $0 && echo ok
docker run --rm $FINAL_IMAGE > $0 && echo ok
fi
}