mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-25 07:00:45 +00:00
Make sure clean-rm doesn't delete the new files
This commit is contained in:
parent
df17e279f4
commit
3458b2b445
16
Building/Linux/clean_rm-common-NN.old
Executable file
16
Building/Linux/clean_rm-common-NN.old
Executable 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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user