#!/bin/sh

cd /home/vagrant
sudo rm -rf *.sh
cd /home/vagrant/odoo
sudo -u vagrant find -name "*.sh" -exec ln -s odoo/{} ../{} \; 
cd ..
chmod u+x *.sh
#!/bin/sh

cd /home/vagrant
sudo rm -rf *.sh
cd /home/vagrant/odoo
sudo -u vagrant find -maxdepth 1 -name "*.sh" -exec ln -s odoo/{} ../{} \; 
cd ..
chmod u+x *.sh
Set max-depth on find command
[FIX] Set max-depth on find command
