contrib/distcc/post-remove

17 lines
373 B
Plaintext
Raw Normal View History

2008-05-07 19:15:32 +10:00
#!/usr/bin/env sh
DIRECTORY='/usr/lib/distcc'
if [ -d "$DIRECTORY" ]; then
if [ -w "$DIRECTORY" ]; then
rm -r "$DIRECTORY"
if [ $? -gt 0 ]; then
echo "post-remove: error remove '$DIRECTORY' failed."
else
echo "post-remove: '$DIRECTORY' removed."
fi
else
echo "post-remove: error no permission to remove '$DIRECTORY'."
fi
fi
unset DIRECTORY
2008-05-07 19:15:32 +10:00
# End of file