@ -66,7 +66,12 @@ REQUIRED_PACKAGES=( \
echo "# updating repositories"
echo "==================="
sudo apt update
if [[ $(date --date='-12 hours' +%s) -gt $(date -d "$(stat -c %y /var/lib/apt/lists/partial)" +%s) ]]; then
sudo apt autoremove -y
else
echo "repositories recently updated!"
fi
echo "# required packages"