File: update-from-web.sh

package info (click to toggle)
command-not-found 23.04.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,064 kB
  • sloc: python: 1,008; sh: 29; makefile: 9
file content (13 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

distro=$(dpkg-parsechangelog -S Distribution)

cd CommandNotFound/db

# the commands-not-found data is currently extracted here
mkdir -p dists
scp -r nusakan.canonical.com:~mvo/cnf-extractor/command-not-found-extractor/dists/${distro}* dists/
find dists/ -name "*.xz" -o -name "*.gz" | xargs rm -f