From f2da8bbabbc1ef7fa0dc313f1da092c6a371e412 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 23 Nov 2018 09:15:25 +0100 Subject: bin/update-pacman-dbs: do not use lib/load-configuration - it fails if executed as root --- bin/update-pacman-dbs | 7 ++++--- 1 file 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 -- cgit v1.2.3-70-g09d2