summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pacman-db-upgrade.sh.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/pacman-db-upgrade.sh.in b/scripts/pacman-db-upgrade.sh.in
index 2fced9be..7bb277b9 100644
--- a/scripts/pacman-db-upgrade.sh.in
+++ b/scripts/pacman-db-upgrade.sh.in
@@ -174,7 +174,10 @@ if [[ -z "$db_version" ]]; then
dirlist+=("${pacroot}${dir%/}")
done < <(grep -h '/$' "$dbroot"/local/*/files | sort -ru)
- mapfile -t dirlist < <(find "${dirlist[@]}" -maxdepth 0 -type l)
+ mapfile -t dirlist < <(
+ for dir in "${dirlist[@]}"; do
+ [[ -L "$dir" ]] && echo "$dir"
+ done)
if [[ ${#dirlist[@]} != 0 ]]; then
msg "$(gettext "Pre-4.2 database format detected - upgrading...")"