Skip to content

Commit

Permalink
minor fix to repurpose_package.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
matemat13 committed Jan 31, 2024
1 parent 1517d84 commit c313b5d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions repurpose_package.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
#!/usr/bin/env bash

if [ $# -le 1 ]; then
echo "usage: ./repurpose_package.sh <original_package_name> <new_package_name> [--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 <original_package_name> <new_package_name> [--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

Expand Down

0 comments on commit c313b5d

Please sign in to comment.