fixing my code

This commit is contained in:
Archie 2024-09-29 01:44:31 +00:00
parent fe279d97bd
commit afc5064a7b

View File

@ -1,11 +1,6 @@
#!/bin/bash
#Achie's Cute little windows to arch script, I HATE WINDOWS!!!
if [ -z "$1" ]; then
echo "Usage: $0 <directory>"
exit 1
fi
DIRECTORY="$1"
find "$DIRECTORY" -type f -exec sed -i 's/windows/arch/g' {} +
find "." -type f ! -name '.*' -exec sed -i 's/windows/arch/g' {} +
echo "Made the code better and made it work."
echo "Love, Archie"