Mercurial > index.cgi > dotfiles
view bin/dotfile-chmod.sh @ 285:f62fb9579277
Changing irc alias a little due to how docker exits; update histignore
author | Steve Huston <huston@srhuston.net> |
---|---|
date | Tue, 16 Jul 2024 22:22:44 -0400 |
parents | 21df76f94578 |
children |
line wrap: on
line source
#!/bin/bash # I wanted this to be a fancy test to see if the files/directories we care # about were updated and make sure the permissions are set right, but hg # doesn't tell you enough in the update hook since you could be traversing # many updates from the current revision to now (unlike commit which gives you # the earliest part of the transaction to compare against tip). So instead # we'll just do this on every update, which isn't too costly anyway. # # Add to .hg/hgrc: # [hooks] # update = ~/bin/dotfile-chmod.sh ROOT=`hg root` chmod -f 700 $ROOT/.ssh $ROOT/.ssh/sockets chmod -f 600 $ROOT/.ssh/config exit 0