Update package.sh

This commit is contained in:
spiritLHLS 2022-12-17 20:31:46 +08:00 committed by GitHub
parent 916a3f2627
commit 7cad667c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,8 +301,10 @@ if [ $? -ne 0 ]; then
fi
fi
# Update the package list again to pick up the new sources
sudo apt update
if [ $? -ne 0 ]; then
# Print a message indicating that the update failed
echo "The update failed. Please try another way"