@sample: Alert user that there is a stale file to be removed.

Submitted by:	amdmi3
With hat:	portmgr
This commit is contained in:
Bryan Drewery 2014-09-11 23:11:48 +00:00
parent 944c6e818b
commit 001502498e
2 changed files with 4 additions and 0 deletions

View File

@ -33,5 +33,7 @@ pre-deinstall: <<EOD
target_file="${sample_file%.sample}"
if cmp -s "${target_file}" "${sample_file}"; then
rm -f "${target_file}"
else
echo "You may need to manually remove ${target_file} if it's no longer needed."
fi
EOD

View File

@ -32,4 +32,6 @@ pre-deinstall: |
target_file="${sample_file%.sample}"
if cmp -s "${target_file}" "${sample_file}"; then
rm -f "${target_file}"
else
echo "You may need to manually remove ${target_file} if it's no longer needed."
fi