From 798cbf7a667679a9a641560b5a2cc668213f565e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 18 May 2018 19:20:57 +0200 Subject: [PATCH] vagrant: suppress any error msgs from __pycache__/.tox cleanup --- Vagrantfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index c5d1529b..b847d2e4 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -150,9 +150,9 @@ end def fs_init(user) return <<-EOF # clean up (wrong/outdated) stuff we likely got via rsync: - rm -rf /vagrant/borg/borg/.tox - rm -rf /vagrant/borg/borg/__pycache__ - find /vagrant/borg/borg/src -name '__pycache__' -exec rm -rf {} \\; + rm -rf /vagrant/borg/borg/.tox 2> /dev/null + rm -rf /vagrant/borg/borg/__pycache__ 2> /dev/null + find /vagrant/borg/borg/src -name '__pycache__' -exec rm -rf {} \\; 2> /dev/null chown -R #{user} /vagrant/borg touch ~#{user}/.bash_profile ; chown #{user} ~#{user}/.bash_profile echo 'export LANG=en_US.UTF-8' >> ~#{user}/.bash_profile