Check that the confmodule is sourceable before sourcing it

This commit is contained in:
Jose Diaz-Gonzalez
2016-06-09 12:48:54 -04:00
parent eab69bd6d5
commit 79a7342808
4 changed files with 20 additions and 8 deletions

8
debian/config vendored
View File

@@ -1,6 +1,10 @@
#!/bin/sh -e
#!/bin/bash
set -eo pipefail; [[ $TRACE ]] && set -x
. /usr/share/debconf/confmodule
if [[ -e /usr/share/debconf/confmodule ]]; then
# shellcheck disable=SC1091
. /usr/share/debconf/confmodule
fi
readonly ACTION="${1:-configure}"
readonly VERSION="${2:-dev}"