[zsh] neither is docker-imagecheck
This commit is contained in:
parent
c981dcb473
commit
31987983c2
|
@ -4,17 +4,6 @@ function speedtest() {
|
||||||
docker run --rm tianon/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() {
|
function vobsub2srt() {
|
||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
|
|
Reference in a new issue