File: framework-remove

package info (click to toggle)
cli-common 0.9+nmu1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 280 kB
  • sloc: perl: 1,208; sh: 103; makefile: 42
file content (18 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if [ ! -x /usr/share/cli-common/runtimes.d/$1 ]; then
    echo ! Cannot remove framework $1
    exit 1
fi

echo "* Removing packages from $1's framework paths"

for file in /usr/share/cli-common/packages.d/*.installcliframework
do
  if [ -f $file ]; then
      /usr/share/cli-common/framework-package-remove \
	  $(basename $file .installcliframework) \
	  $1
  fi
done