File: gac-remove

package info (click to toggle)
cli-common 0.10
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 284 kB
  • sloc: perl: 1,198; sh: 103; makefile: 44
file content (16 lines) | stat: -rwxr-xr-x 335 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

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

echo "* Removing packages from $1"

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