From 1a3aae1e065beda7d0cb14c1536dd52132e57fa2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 2 Sep 2017 22:16:19 +0300 Subject: add fix_permissions.sh --- README.md | 9 ++++++++- fix_permissions.sh | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 fix_permissions.sh diff --git a/README.md b/README.md index 5194043..8a758ff 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,16 @@ Using [config-links]: > ../config-links/update.sh ... +Issues +------ + +Some utilities (notably, GHC) may not work if its configuration files are +group-writable. +To fix this, run `chmod g-w` for every file & directory in this repository (you +can do this using the supplied fix_permissions.sh script). + License ------- - Distributed under the MIT License. See [LICENSE.txt] for details. diff --git a/fix_permissions.sh b/fix_permissions.sh new file mode 100755 index 0000000..65974b9 --- /dev/null +++ b/fix_permissions.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" +script_dir="$( cd -- "$script_dir" && pwd )" +find "$script_dir" -mindepth 1 -path ./.git -prune -o -exec chmod g-w {} + -- cgit v1.2.3