From c313b5d48af2b54eb76ab088b63e58c351ad4dad Mon Sep 17 00:00:00 2001 From: matous Date: Wed, 31 Jan 2024 09:53:45 +0100 Subject: [PATCH] minor fix to repurpose_package.sh --- repurpose_package.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/repurpose_package.sh b/repurpose_package.sh index 7ea06d8..6f26508 100755 --- a/repurpose_package.sh +++ b/repurpose_package.sh @@ -1,13 +1,10 @@ #!/usr/bin/env bash -if [ $# -le 1 ]; then - echo "usage: ./repurpose_package.sh [--dry-run, --camel-case]" - if [ $1 == "--help" ]; then - echo " - Removes the .git directory, initializes a new one, - replaces all occurences of the original package name with the new one in all files withing all subfolders, - replaces all occurences of the original package name with the new one wthinin all filenames." - fi +if [ $# -le 1 ] || [ $1 == "--help" ]; then + echo "usage: ./repurpose_package.sh [--dry-run, --camel-case] + Removes the .git directory, initializes a new one, + replaces all occurences of the original package name with the new one in all files withing all subfolders, + replaces all occurences of the original package name with the new one wthinin all filenames." exit 1 fi