Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setup.sh to run on linux #58

Open
SummerSeaSun opened this issue Jun 21, 2023 · 2 comments
Open

Fix setup.sh to run on linux #58

SummerSeaSun opened this issue Jun 21, 2023 · 2 comments

Comments

@SummerSeaSun
Copy link

To run install script on Linux Debian 12 need to be edited with:

sed -i -e "s/\\r//g" ../setup.sh

@saevarom
Copy link
Collaborator

Can you run that on the setup.sh script and submit as a PR here?

@SummerSeaSun
Copy link
Author

Thanks for the reply I'm trying to do that but something wrong is happening:

git reset --hard  
HEAD ora si trova a 9b6e9c9 Enclose strings in quotes to avoid syntax errors in YAML parsing, specifically the error yaml: line 20: mapping values are not allowed in this context (#33)

Now retry and fail install:

./setup.sh 
/usr/bin/env: "bash\r": File or directory doesn't exist
/usr/bin/env: use -[v]S to pass options in shebang lines

Now fix and install is started correctly:

sed -i -e "s/\\r//g"  ./setup.sh

./setup.sh 
Directory bakerydemo already exists, skipping...
Directory wagtail already exists, skipping...
Directory libs/django-modelcluster already exists, skipping...
Directory libs/Willow already exists, skipping...

Then git detect an edit:

$git status
Sul branch master
Il tuo branch è aggiornato rispetto a 'origin/master'.

Modifiche non nell'area di staging per il commit:
  (usa "git add <file>..." per aggiornare gli elementi di cui sarà eseguito il commit)
  (usa "git restore <file>..." per scartare le modifiche nella directory di lavoro)
	modificato:             setup.sh


But won't commit it says branch is already updated :

$git commit -a

Sul branch master
Il tuo branch è aggiornato rispetto a 'origin/master'. 

git version 2.39.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants