* Fix issues involving sudo and root.
Removed the usage of sudo in the script because it stops pacman from running.
The script will now warn you if you are not root, but it will not stop the script from running to allow usage of dry-run without root privileges.
* Update pkgrecover.sh
Will now check to make sure the important directories are mounted.
* Update pkgrecover.sh
Will now stop people from trying to install packages without root privileges.
* Update pkgrecover.sh
---------
Co-authored-by: Eduard Tolosa <tolosaeduard@gmail.com>
There are some packages which have very short names, like `go`. Without this, every `go*` package will match, now only packages with `go-*` will match. It's needed because the output of the pacman db dir contains `$pkgname-$pkgver`