feat: debian setup, codepsaces install
This commit is contained in:
@@ -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}')"
|
||||
|
||||
Reference in New Issue
Block a user