File: ondirrc.eg

package info (click to toggle)
ondir 0.2.3%2Bgit0.55279f03-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 188 kB
  • ctags: 53
  • sloc: ansic: 450; makefile: 70; sh: 13; csh: 2
file content (12 lines) | stat: -rw-r--r-- 256 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# vim:syntax=sh

# I have these directories setgid, so I want my umask to allow group writes.
enter /opt/music:/opt/movies
	# Preserve umask
	OLDUMASK=`umask`
	umask 007

# Back to normal
final leave /opt/music:/opt/movies
	umask $OLDUMASK
	unset OLDUMASK