feat: debian setup, codepsaces install

This commit is contained in:
2024-03-08 00:04:34 +00:00
parent 858f791afd
commit d9283511a3
11 changed files with 24 additions and 18 deletions

View File

@@ -12,9 +12,7 @@ if command -v apt-get &> /dev/null; then
gnupg2
)
sudo apt-get update
apt_packages=($(comm -13 <(printf "%s\n" "${apt_packages[@]}" | sort) <(dpkg --get-selections | awk '{print $1}' | sort)))
sudo apt-get update -qq
if [ ${#apt_packages[@]} -gt 0 ]; then
sudo apt-get install -qq "${apt_packages[@]}"
fi
@@ -23,3 +21,6 @@ if command -v apt-get &> /dev/null; then
else
echo "Skipping: apt-get not found"
fi
apt --version
echo "Last updated: $(ls -l /var/lib/apt/periodic/update-success-stamp | awk '{print $6" "$7" "$8}')"