This commit is contained in:
Den Piligrim
2025-12-25 22:11:57 +03:00
parent 13e64b4e86
commit 3cb0e4e77e
4 changed files with 28 additions and 0 deletions
+12
View File
@@ -17,6 +17,18 @@ need_root() {
[[ $EUID -eq 0 ]] || die "Запускать только от root"
}
read -r -p "Вы уверены, что хотите удалить? (y/N): " answer
case "$answer" in
y|Y)
echo "Начинаю удаление..."
;;
*)
echo "Удаление отменено"
exit 1
;;
esac
#################################
# START
#################################