aboutsummaryrefslogtreecommitdiff
path: root/share/trashman/debian-backports/unix/linux/debian/check
blob: 14481990767f769f6a8ffb4efc4ac1025e842a2f (plain)
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
#!/usr/bin/env sh
#
# Check if nodejs is installed system-wide.
#

# Parameters
SHARE="$1"

# Include basic functions
. $SHARE/trashman/functions || exit 1
. $SHARE/trashman/debian    || exit 1

# Custom parameters
BACKPORTS="/etc/apt/sources.list/backports.list"

# Check if installed
if [ -e "$BACKPORTS" ]; then
  exit 0
fi

# Check if not installed
if [ ! -e "$BACKPORTS" ]; then
  exit !
fi

# Will never run, but it's here to remember that we can check if the package is
# partially installed
exit 2