bdisk/extra/pre-build.d/etc/systemd/scripts/pacmandb.sh

10 lines
158 B
Bash
Executable File

#!/bin/bash
for i in pacman apacman;
do
if [ -f /usr/local/${i}.db.tar.xz ];
then
/usr/bin/tar -Jxf /usr/local/${i}.db.tar.xz -C /var/lib/${i}/
fi
done