1 2 3 4 5 6
d=/etc/groff f=/usr/share/groff/site-tmac if [ -f "$f.RPMLOCK" -a -d "$d" -a ! -d "$d.RPMSAVE" ]; then mv "$d" "$d.RPMSAVE" rm -f "$f.RPMLOCK" fi
1 2 3 4 5
f=/usr/share/groff/site-tmac if [ -d "$f" -a ! -L "$f" ]; then rm -rf "$f" /bin/touch "$f.RPMLOCK" fi