Files
tg_tinder_bot/bin/fix_permissions.sh
2025-11-06 15:09:15 +09:00

18 lines
847 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# fix_permissions.sh - Устанавливает права на выполнение для всех скриптов
echo "🔧 Установка прав на выполнение для всех скриптов..."
# Находим все .sh файлы и устанавливаем права на выполнение
find . -name "*.sh" -type f -exec chmod +x {} \;
echo "✅ Права на выполнение установлены!"
# Исправление переносов строк
echo "🔧 Исправление переносов строк..."
find . -name "*.sh" -type f -exec sh -c 'tr -d "\r" < "$1" > "$1.fixed" && mv "$1.fixed" "$1"' -- {} \;
echo "✅ Переносы строк исправлены!"
echo "🚀 Готово! Все скрипты готовы к использованию."