File: postinst.in

package info (click to toggle)
msttcorefonts 3.8
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye
  • size: 312 kB
  • sloc: sh: 294; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
set -e

. /usr/share/debconf/confmodule

db_get msttcorefonts/dldir
LOCALCOPY=$RET

db_get msttcorefonts/savedir
SAVEDIR=$RET

db_get msttcorefonts/dlurl
URLOVERRIDE=$RET

db_get msttcorefonts/http_proxy
http_proxy=$RET

while ! echo "$http_proxy" | \
    egrep -iq 'https?://[[:alnum:]][-.[:alnum:]]+(:\d+)?/?' &&  \
    [ ! -z "$http_proxy" ] ; do
        db_fset msttcorefonts/http_proxy seen false
        db_input high msttcorefonts/http_proxy
        db_go
        db_get msttcorefonts/http_proxy
        http_proxy=$RET
done

## Content of update-ms-fonts will be concatenated below