ProjectInitializationAutomation icon indicating copy to clipboard operation
ProjectInitializationAutomation copied to clipboard

On the bash function it may be necessary to use python3

Open AlexDCode opened this issue 4 years ago • 1 comments

I am modifying the project to add a new file according to the user extension given in a second argument in the bash command. After setting all up my code cannot run and keep giving errors. In my case, I need to use python3 instead of python because I have Python 3. I would like to see this hint added to the README.md because it can be useful for troubleshooting on the installation.

The modified code in the bash command is:

function create() {
    source .env
    python3 create.py $1 $2
    git init
    git remote add origin [email protected]:$USERNAME/$1.git
    touch README.md
    touch main$2
    git add .
    git commit -m "Initial commit"
    git push -u origin master
    code .
}

AlexDCode avatar Apr 20 '20 01:04 AlexDCode

I have created a same script as this to work on every machine

DO NOT WORRY THIS SCRIPT WORKS ON EVERY MACHINE

Link to the project: https://github.com/String-error-404/GIT-and-GTITHUB_automation

if you like the project give a star to the repo and follow me on github

terminal-guy avatar Aug 12 '20 06:08 terminal-guy