pull/40/head
TomasM 2017-10-15 11:40:56 -04:00
parent c0d8991c0d
commit a5a9da6783
1 changed files with 10 additions and 0 deletions

View File

@ -26,3 +26,13 @@ apt-get()
/usr/bin/apt-get --no-install-recommends "$@"
fi
}
apt()
{
if [ -e /var/cache/apt/pkgcache.bin ]; then
/usr/bin/apt --no-install-recommends "$@"
else
/usr/bin/apt update
/usr/bin/apt --no-install-recommends "$@"
fi
}