Files
zellyy-finance/archive/scripts/cleanup-all-scripts.sh

39 lines
787 B
Bash
Executable File

#!/bin/bash
# 모든 스크립트 파일 정리 스크립트
echo "모든 불필요한 스크립트 파일 정리 중..."
# 프로젝트 디렉토리로 이동
cd "$(dirname "$0")"
# 유지할 스크립트 파일 목록
KEEP_FILES=(
"fix-splash-screen-final.sh"
"restore-previous-splash.sh"
"cleanup-all-scripts.sh"
)
# 모든 .sh 파일 찾기
for script in *.sh; do
# 유지할 파일인지 확인
keep=false
for keep_file in "${KEEP_FILES[@]}"; do
if [ "$script" = "$keep_file" ]; then
keep=true
break
fi
done
# 유지할 파일이 아니면 삭제
if [ "$keep" = false ]; then
echo "삭제: $script"
rm -f "$script"
else
echo "유지: $script"
fi
done
echo "정리 완료!"
echo "남은 스크립트 파일:"
ls -la *.sh