summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-05-03 00:29:36 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-05-03 00:29:36 -0400
commit1a3f6289ccfbb15cd8e8c3d28a8ee198fa477a30 (patch)
tree8ad9dc98b220a9dff68c5dd1f92c56891244c2d1
parent90ce65c0d0c0315a3213762cee052108fbee937d (diff)
db-import-pkg: db-functions does not like my little subshellparabola/20180502.2
-rwxr-xr-xdb-import-pkg2
1 files changed, 2 insertions, 0 deletions
diff --git a/db-import-pkg b/db-import-pkg
index be41d76..5ff35a8 100755
--- a/db-import-pkg
+++ b/db-import-pkg
@@ -205,8 +205,10 @@ make_repo_dbs() {
(
# I'm nervous about loading db-functions in the global
# scope.
+ set -eE
. "$(dirname "$(readlink -e "$0")")/db-functions"
set_repo_permission "$1" "$2"
+ trap - EXIT
)
}