start with apt-purge

This commit is contained in:
Daylin Morgan 2024-07-15 13:46:47 -05:00
parent 5156e5a61f
commit cfa3b363a0
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -34,17 +34,15 @@ runs:
echo "Removing unwanted software... " echo "Removing unwanted software... "
sudo rm -rf /opt &
sudo rm -rf "$AGENT_TOOLSDIRECTORY" &
if [[ "${{ inputs.purge-packages }}" == 'true' ]]; then if [[ "${{ inputs.purge-packages }}" == 'true' ]]; then
sudo apt-get purge \ sudo apt-get purge \
--allow-remove-essential \ --allow-remove-essential \
-qq \ -qq \
$(non_manifest_packages) > /dev/null & $(non_manifest_packages) # > /dev/null
wait
fi fi
sudo rm -rf /opt &
sudo rm -rf "$AGENT_TOOLSDIRECTORY" &
sudo rm -rf /var/lib/docker & sudo rm -rf /var/lib/docker &
sudo rm -rf /usr/{local,share} & sudo rm -rf /usr/{local,share} &