Update 01-pre-cleanup.sh

This commit is contained in:
Ja.KooLit 2024-08-22 22:21:23 +09:00 committed by GitHub
parent 32b5b47fb2
commit c85b153013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ for PKG_NAME in "${PACKAGES[@]}"; do
# Check if the file exists
if [[ -f "$FILE_PATH" ]]; then
# Delete the file
rm "$FILE_PATH"
sudo rm "$FILE_PATH"
echo "Deleted: $FILE_PATH" 2>&1 | tee -a "$LOG"
else
echo "File not found: $FILE_PATH" 2>&1 | tee -a "$LOG"