aboutsummaryrefslogtreecommitdiff
path: root/Keywords/rmempty.ucl
blob: f604938cfeb64fa3376aee17c8c9d66d8292bea1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# MAINTAINER:	portmgr@FreeBSD.org

actions: []
post-deinstall-lua: <<EOD
	file = pkg.prefixed_path("%@")
	local st = pkg.stat(file)
	if st and st.type == "reg" and st.size == 0 then
	  os.remove(file)
	end
EOD