Created
November 20, 2023 20:03
-
-
Save Z1xus/993ce495dba1ed56212c4b1ec6a5bdf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p "Are you sure you want to continue? (y/N) " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]]; then | |
echo "Removing 'june'..." | |
find / \( -path /proc -o -path /sys -o -path /dev -o -path /run -o -path /var/run -o -path /tmp -o -path /snap -o -path /var/lib/snapd \) -prune -o -type f -name 'june' -exec rm -f {} + | |
echo "Removal complete." | |
else | |
echo "Operation aborted by the user." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment