#!/bin/bash
# use: sudo bash snap-cleanup.sh
# Error status variables
STATUS_OK=0
STATUS_ERROR=1
# Color settings
YELLOW_COLOR="\033[1;33m"
RED_COLOR="\033[0;31m"
OFF_COLOR="\033[0m"
# Set English language
LANG=en_US.UTF-8
# Execute it as root user
if [; then
fi
# Current status
USED_BEFORE=""
# snapd revisions clean
if [; then
# shellcheck disable=SC2162
KEY="" && KEY=""
if [ || [; then
# remove unused snapd revisions
# shellcheck disable=SC2162
| |
while ; do
;
done
if [ & [; then
fi
else
fi
fi
# Current status
USED_AFTER=""
# Summary
&