[zsh] neither is docker-imagecheck

This commit is contained in:
Simon Bruder 2019-05-25 15:25:18 +00:00
parent c981dcb473
commit 31987983c2
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -4,17 +4,6 @@ function speedtest() {
docker run --rm tianon/speedtest
}
function docker-imagecheck() {
created=$(date -d $(docker inspect "$1" | jshon -e 0 -e Created -u) "+%s")
now=$(date "+%s")
if [ "$((created + (5*24*60*60)))" -lt "$now" ];then
echo "$1 is older than 5 days, pulling…"
docker pull $1
else
echo "$1 is up to date, skipping…"
fi
}
function vobsub2srt() {
docker run \
--rm \