Add permissions file

This commit is contained in:
David Holland 2020-05-23 16:58:59 +02:00
parent ed6715dc05
commit 0ebf0c6a13
Signed by: DustVoice
GPG Key ID: 47068995A14EDCA9
1 changed files with 11 additions and 0 deletions

11
.restore-permissions Executable file
View File

@ -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 {} \;