diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-07 16:58:15 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-07 16:58:15 +0300 |
commit | df9cf58ffff9557ae7a3bfef1db948d9c9412d35 (patch) | |
tree | 7a3104967474b056015d99bb1b73ba38a9e3bb53 /.bashrc | |
parent | add Sublime Text 3 settings (diff) | |
download | linux-home-df9cf58ffff9557ae7a3bfef1db948d9c9412d35.tar.gz linux-home-df9cf58ffff9557ae7a3bfef1db948d9c9412d35.zip |
bugfix
Diffstat (limited to '')
-rw-r--r-- | .bashrc | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -217,15 +217,20 @@ symlink_sublime_preferences() ( mkdir -p "$dest_dir" fi - find "$src_dir" -maxdepth 1 -type f -exec ln -fs {} "$dest_dir" \; + find "$src_dir" -maxdepth 1 -type f -exec ln --force -s {} "$dest_dir" \; ) tighten_up_file_permissions_in_repo() ( set -o errexit - git ls-files | xargs chmod 0600 + git ls-files -z | xargs -0 chmod 0600 - { echo . ; git ls-files ; } | xargs dirname | sort | uniq | tail -n +2 | xargs chmod 0700 + { printf '.\0' ; git ls-files -z ; } \ + | xargs -0 dirname -z \ + | sort -z \ + | uniq -z \ + | tail -z -n +2 \ + | xargs -0 chmod 0700 chmod 0700 .git ) |