From 7b6d0ac03375de6add519f9d6e6a3c7b0078173b Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Sun, 25 Jul 2021 19:15:54 -0600 Subject: [PATCH] Alright good enough for now. I've got other things to do. --- new_python_tool.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/new_python_tool.sh b/new_python_tool.sh index bdcbcb1..5c3fa7c 100755 --- a/new_python_tool.sh +++ b/new_python_tool.sh @@ -1,5 +1,6 @@ #!/bin/bash -# An independent version of the new_python_tool function from my bash profile. +# A tool to create a new python project with less setup than usual. +# v1.0 Jul 2021 by Cronocide # Boilerplate functions from bash_profile for convenience @@ -141,6 +142,10 @@ new_python_tool() { rm -rf ./"$NAME"/.git git init ./"$NAME" + # Delete self from project_file + [ -f ./"$NAME"/new_python_tool.sh ] && echo "Removing project setup script..." && rm ./"$NAME"/new_python_tool.sh + echo "Python tool $NAME is ready to start." + # Next steps echo "Next steps:" echo " 1. Modify your bin/$NAME file to load your project libraries (if applicable)" @@ -150,10 +155,6 @@ new_python_tool() { echo " 5. Write the software" echo " 6. ..." echo " 7. Profit" - - # Delete self from project_file - [ -f ./"$NAME"/new_python_tool.sh ] && echo "Removing project setup script..." && rm ./"$NAME"/new_python_tool.sh - echo "Python tool $NAME is ready to start." } new_python_tool "$1"