Make sure clean-rm doesn't delete the new files

This commit is contained in:
Phil Olynyk 2022-02-17 22:32:27 -05:00
parent df17e279f4
commit 3458b2b445
2 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,16 @@
# begin common script shell
# delete all the folder not deleted by the purge command
echo "appli_name=${appli_name}"
list=$(find /usr -name ${appli_name} 2>/dev/null)
for folder in $list
do
echo "to delete : '$folder'"
rm -r $folder
done
# end common script shell

View File

@ -4,12 +4,15 @@
echo "appli_name=${appli_name}"
list=$(find /usr -name ${appli_name} 2>/dev/null)
list=$(find /usr/share -name ${appli_name} 2>/dev/null)
for folder in $list
do
echo "to delete : '$folder'"
rm -r $folder
if [ $folder != '/usr/share/OSCAR' ]
then
echo "to delete : '$folder'"
rm -r $folder
fi
done
# end common script shell