So, I have this small simple shell script called refre.sh that will update from svn and call a Django command:
echo "Refresh..."
svn update
python manage.py collectstatic --noinput --settings=settings.prod
When I execute the script with ./refre.sh, will output:
Refresh...
'nknown command: 'update
Type 'svn help' for usage.
Unknown command: 'collectstatic'
Type 'manage.py help' for usage.
but when I'm typing the commands manually in the shell, I get the correct output.
This lead me to think that there is a environment problem or something like this, because I have Django installed locally, and not using the global installation (also python is locally installed, but I've put the full path to the correct python, and it didn't help).
So, do I have to set some environment variables or what am I missing ?