From 4253bb390a65b7a28891b182d90a83c3df2277bb Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Tue, 2 Nov 2021 20:28:59 -0600 Subject: [PATCH] Cleaned up a few more bugs --- new_python_tool.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new_python_tool.sh b/new_python_tool.sh index 5c3fa7c..bf1f133 100755 --- a/new_python_tool.sh +++ b/new_python_tool.sh @@ -35,7 +35,7 @@ sed_i() { if [[ $(type gsed 2>/dev/null) != "" ]]; then gsed -i "$@"; else - sed -i '' $@; + sed -i '' "$@"; fi; else sed -i $@; @@ -106,7 +106,6 @@ new_python_tool() { echo "Don't forget to configure your service files." else # Remove the custom setup scripts - sed_i 's#cmdclass=.*##g' ./"$NAME"/setup.py rm ./"$NAME"/com."$USER"."$NAME".plist rm ./"$NAME"/"$NAME".service fi @@ -135,6 +134,7 @@ new_python_tool() { # Remove setup.sh if our tool doesn't need it to install. if [[ "$SERVICE_FILE" != 'y' && "$INSTALL_CONFIG" != 'y' ]]; then + sed_i 's#cmdclass=.*##g' ./"$NAME"/setup.py rm ./"$NAME"/setup.sh fi