diff options
author | Erich Eckner <git@eckner.net> | 2018-11-23 09:15:25 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-23 09:15:25 +0100 |
commit | f2da8bbabbc1ef7fa0dc313f1da092c6a371e412 (patch) | |
tree | 1bcdfabbb2d74d8fd6d06f33e3b7bbb1c29e3375 /bin | |
parent | 0334be75679f08d5e55fad8ba6aee611c6fbc32e (diff) | |
download | builder-f2da8bbabbc1ef7fa0dc313f1da092c6a371e412.tar.xz |
bin/update-pacman-dbs: do not use lib/load-configuration - it fails if executed as root
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-pacman-dbs | 7 |
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 |