Fix syntax errors and README.md file paths (#2)

* fix syntax errors

* update README.md to use the correct file name

---------

Co-authored-by: sedot42 <git@fry.fastmail.com>
This commit is contained in:
Stefan E 2025-04-24 11:24:11 +02:00 committed by GitHub
parent 08410b71c0
commit bb89239a23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 12 deletions

8
pkgrecover.sh Normal file → Executable file
View file

@ -7,17 +7,17 @@ YELLOW='\033[1;33m'
directory_check() {
#checks to make sure that all the important directories are mounted properly
if [[ ! -d /proc]]; then
if [[ ! -d /proc ]]; then
echo -e "${RED} ERROR: /proc is not mounted. upgrading without /proc mounted can cause damage."
exit 1
fi
if [[ ! -d /sys]]; then
if [[ ! -d /sys ]]; then
echo -e "${RED} ERROR: /sys is not mounted. upgrading without /sys mounted can cause damage."
exit 1
fi
if [[ ! -d /boot]]; then
if [[ ! -d /boot ]]; then
echo -e "${RED} ERROR: /boot is not mounted. upgrading without /boot mounted can cause damage."
exit 1
fi