Browse Source

Fix a potential bug

pull/264/head
Xavier Petit 5 years ago
parent
commit
d7c8dd019b
No known key found for this signature in database
GPG Key ID: CA3F2B17E25ABD26
  1. 2
      scripts/install_client.sh

2
scripts/install_client.sh

@ -29,7 +29,7 @@ apt-get -y upgrade
apt-get -y autoremove --purge apt-get -y autoremove --purge
# Remove outdated kernels # Remove outdated kernels
old_kernels=$(ls -1 /boot/config-* | xargs -n1 basename | grep -v "$(uname -r)" | cut -d- -f2,3) old_kernels=$(ls -1 /boot/config-* | sed '$d' | xargs -n1 basename | cut -d- -f2,3)
for old_kernel in $old_kernels; do for old_kernel in $old_kernels; do
dpkg -P $(dpkg-query -f '${binary:Package}\n' -W *"$old_kernel"*) dpkg -P $(dpkg-query -f '${binary:Package}\n' -W *"$old_kernel"*)

Loading…
Cancel
Save