From 3ad89de82ccb8a7a9db314c0057a0e6e6c1f51f1 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 6 Jul 2018 16:34:59 -0400 Subject: [PATCH] Add function to fix permissions from USB stick Mac kills permissions. Restore something more sane (but still wrong) with this. --- functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions b/functions index 77cd330..7ee86ce 100644 --- a/functions +++ b/functions @@ -7,6 +7,11 @@ function aws-profile { fi } +function fix-permissions { + find . -type d -print0 | xargs -0 chmod 0755 + find . -type f -print0 | xargs -0 chmod 0644 +} + function g { if [[ $# > 0 ]]; then git $@