File: postinst

package info (click to toggle)
scrcpy 3.3.4-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 2,832 kB
  • sloc: ansic: 22,489; java: 10,142; sh: 953; xml: 94; makefile: 30
file content (21 lines) | stat: -rw-r--r-- 304 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

#DEBHELPER#

. /usr/share/debconf/confmodule

db_get scrcpy/update_server
db_stop

if [ "$RET" = true ] ; then
  ret=0
  /usr/libexec/scrcpy-update-server || ret=$?
  if [ "$ret" = 1 ] ; then
    echo 'Run "sudo dpkg-reconfigure scrcpy" to skip download'
  fi
  exit "$ret"
fi

exit 0