spark-store/tool/update-upgrade/ss-do-upgrade.sh

9 lines
451 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
DEPEND=`which apt-fast`
if [ "$DEPEND" = "" ] ; then
echo "没有安装apt-fast使用apt运行"
sudo apt upgrade -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
else
echo "已安装apt-fast使用apt-fast加速运行"
sudo apt-fast upgrade -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
fi