Update pkgrecover.sh

This commit is contained in:
Eduard Tolosa 2024-09-23 00:09:30 -05:00 committed by GitHub
parent 0eec8cceb0
commit 08410b71c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,7 @@ directory_check() {
exit 1 exit 1
fi fi
} }
install_pacman_static() { install_pacman_static() {
if [[ ! -f /tmp/pacman-static.installed ]]; then if [[ ! -f /tmp/pacman-static.installed ]]; then
echo "Downloading and installing pacman-static. In case that curl fails, you can download the binary from:" echo "Downloading and installing pacman-static. In case that curl fails, you can download the binary from:"
@ -49,6 +50,8 @@ check_dependencies() {
echo "paclog is not installed. Use the --pacman-db option instead or install the pacutils package." echo "paclog is not installed. Use the --pacman-db option instead or install the pacutils package."
exit 1 exit 1
fi fi
directory_check
} }
cleanup() { cleanup() {