On ubuntu 18.10 I've problem with a simple script.
If I execute this command directly from shell it works:
drush -y rsync @d8.live:web/sites/default/files @self:sites/default --delete -vv
If I create a .sh script with:
#!/bin/bash
drush -y rsync @d8.live:web/sites/default/files @self:sites/default --delete -vv
The script doesn't work and the drush
command returns me an error:
The "--delete" option does not exist.
The command and the script are running from the same directory and the same user.
Where is the problem?
PS: "drush
" is a wrapper that executes a docker-compose command
[EDIT]
$ type -a drush
drush ha "drush --strict=0" come alias
drush è /usr/local/bin/drush
$ cat /usr/local/bin/drush
#!/bin/bash
cd $PWD
docker-compose -p example exec --user 82 php drush $@