From 0ebf0c6a13627114f3aae0d5afe8178f3a778cca Mon Sep 17 00:00:00 2001 From: DustVoice Date: Sat, 23 May 2020 16:58:59 +0200 Subject: [PATCH] Add permissions file --- .restore-permissions | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .restore-permissions diff --git a/.restore-permissions b/.restore-permissions new file mode 100755 index 0000000..df7b385 --- /dev/null +++ b/.restore-permissions @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +echo 'Adapting permissions of "."' +chown -R $(whoami) . +find . -path ./plugged -prune -o -type d -exec chmod 755 {} \; +find . -path ./plugged -prune -o -type f -exec chmod 644 {} \; + +echo 'Adapting permissions of "./.restore-permissions"' +chmod 755 ./.restore-permissions + +find . -path ./plugged -prune -o -type f -exec ls -l {} \;