mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-13 22:51:31 +01:00
dockcross: Do not leave dangling container on update-script
Addesses #103
This commit is contained in:
parent
3d48e56115
commit
c25807acda
@ -34,11 +34,11 @@ help:update-image() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
command:update-script() {
|
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
|
echo $0 is up to date
|
||||||
else
|
else
|
||||||
echo -n Updating $0 '... '
|
echo -n Updating $0 '... '
|
||||||
docker run $FINAL_IMAGE > $0 && echo ok
|
docker run --rm $FINAL_IMAGE > $0 && echo ok
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user