From afc5064a7b0e4e441b7b3de5361f9efac043c840 Mon Sep 17 00:00:00 2001 From: Archie Date: Sun, 29 Sep 2024 01:44:31 +0000 Subject: [PATCH] fixing my code --- WIN2ARCH.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/WIN2ARCH.sh b/WIN2ARCH.sh index bb8d23e01..65adc0043 100755 --- a/WIN2ARCH.sh +++ b/WIN2ARCH.sh @@ -1,11 +1,6 @@ #!/bin/bash #Achie's Cute little windows to arch script, I HATE WINDOWS!!! -if [ -z "$1" ]; then - echo "Usage: $0 " - 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"