Cleaned up a few more bugs

This commit is contained in:
Daniel Dayley 2021-11-02 20:28:59 -06:00
parent 7b6d0ac033
commit 4253bb390a

View File

@ -35,7 +35,7 @@ sed_i() {
if [[ $(type gsed 2>/dev/null) != "" ]]; then if [[ $(type gsed 2>/dev/null) != "" ]]; then
gsed -i "$@"; gsed -i "$@";
else else
sed -i '' $@; sed -i '' "$@";
fi; fi;
else else
sed -i $@; sed -i $@;
@ -106,7 +106,6 @@ new_python_tool() {
echo "Don't forget to configure your service files." echo "Don't forget to configure your service files."
else else
# Remove the custom setup scripts # Remove the custom setup scripts
sed_i 's#cmdclass=.*##g' ./"$NAME"/setup.py
rm ./"$NAME"/com."$USER"."$NAME".plist rm ./"$NAME"/com."$USER"."$NAME".plist
rm ./"$NAME"/"$NAME".service rm ./"$NAME"/"$NAME".service
fi fi
@ -135,6 +134,7 @@ new_python_tool() {
# Remove setup.sh if our tool doesn't need it to install. # Remove setup.sh if our tool doesn't need it to install.
if [[ "$SERVICE_FILE" != 'y' && "$INSTALL_CONFIG" != 'y' ]]; then if [[ "$SERVICE_FILE" != 'y' && "$INSTALL_CONFIG" != 'y' ]]; then
sed_i 's#cmdclass=.*##g' ./"$NAME"/setup.py
rm ./"$NAME"/setup.sh rm ./"$NAME"/setup.sh
fi fi