File: clean_rm-common-NN.sh

package info (click to toggle)
oscar 1.5.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,508 kB
  • sloc: cpp: 80,911; ansic: 6,910; python: 1,727; sh: 1,044; xml: 150; javascript: 74; makefile: 34; awk: 18
file content (19 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

# begin common script shell
# delete all the folder not deleted by the purge command

echo "appli_name=${appli_name}"

list=$(find /usr/share -name ${appli_name} 2>/dev/null)

for folder in $list
do
   if [ $folder != '/usr/share/OSCAR' ]
   then
      echo "to delete : '$folder'"
      rm -r $folder
   fi
done

# end common script shell