From bc4b6be198e8d801c7327d151b43f4007abc85ec Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 18 Oct 2016 20:50:35 -0700 Subject: [PATCH] [macOS] Update tccutil command --- tasks/osx.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/osx.py b/tasks/osx.py index eaefc425..856f2669 100644 --- a/tasks/osx.py +++ b/tasks/osx.py @@ -115,10 +115,11 @@ SCRIPTS_NEEDING_ASSISTIVE_DEVICE_ACCESS = [ @ctask def tccutil(ctx): - ctx.run('wget -O "$HOME/.lib/bin/tccutil.py" "https://raw.githubusercontent.com/IvanMalison/tccutil/master/tccutil.py"') - ctx.run('chmod 755 "$HOME/.lib/bin/tccutil.py"') + if not os.path.exists(os.path.expanduser("~/.lib/bin/tccutil.py")): + ctx.run('wget -O "$HOME/.lib/bin/tccutil.py" "https://raw.githubusercontent.com/IvanMalison/tccutil/master/tccutil.py"') + ctx.run('chmod 755 "$HOME/.lib/bin/tccutil.py"') for script in SCRIPTS_NEEDING_ASSISTIVE_DEVICE_ACCESS: - command = 'sudo tccutil.py -i "{0}" && sudo tccutil.py -e "{0}"'.format(script) + command = 'sudo tccutil.py -v -i "{0}" && sudo tccutil.py -v -e "{0}"'.format(script) print(command) ctx.run(command)