summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-23 09:15:25 +0100
committerErich Eckner <git@eckner.net>2018-11-23 09:15:25 +0100
commitf2da8bbabbc1ef7fa0dc313f1da092c6a371e412 (patch)
tree1bcdfabbb2d74d8fd6d06f33e3b7bbb1c29e3375
parent0334be75679f08d5e55fad8ba6aee611c6fbc32e (diff)
downloadbuilder-f2da8bbabbc1ef7fa0dc313f1da092c6a371e412.tar.xz
bin/update-pacman-dbs: do not use lib/load-configuration - it fails if executed as root
-rwxr-xr-xbin/update-pacman-dbs7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/update-pacman-dbs b/bin/update-pacman-dbs
index 8c89bf9..1ba0759 100755
--- a/bin/update-pacman-dbs
+++ b/bin/update-pacman-dbs
@@ -1,7 +1,8 @@
-#!/bin/bash
+#!/bin/sh
-# shellcheck source=../lib/load-configuration
-. "${0%/*}/../lib/load-configuration"
+base_dir=$(
+ readlink -f "${0%/*}/.."
+)
pacman --config "${base_dir}/misc/pacman-i486.conf" -Syy
pacman --config "${base_dir}/misc/pacman-i686.conf" -Syy