mirror of
https://github.com/edu4rdshl/archlinux-pkgrecover.git
synced 2026-07-17 23:24:46 +00:00
fix syntax errors
This commit is contained in:
parent
08410b71c0
commit
01f0a230d7
1 changed files with 4 additions and 4 deletions
8
pkgrecover.sh
Normal file → Executable file
8
pkgrecover.sh
Normal file → Executable file
|
|
@ -7,17 +7,17 @@ YELLOW='\033[1;33m'
|
||||||
|
|
||||||
directory_check() {
|
directory_check() {
|
||||||
#checks to make sure that all the important directories are mounted properly
|
#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."
|
echo -e "${RED} ERROR: /proc is not mounted. upgrading without /proc mounted can cause damage."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d /sys]]; then
|
if [[ ! -d /sys ]]; then
|
||||||
echo -e "${RED} ERROR: /sys is not mounted. upgrading without /sys mounted can cause damage."
|
echo -e "${RED} ERROR: /sys is not mounted. upgrading without /sys mounted can cause damage."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d /boot]]; then
|
if [[ ! -d /boot ]]; then
|
||||||
echo -e "${RED} ERROR: /boot is not mounted. upgrading without /boot mounted can cause damage."
|
echo -e "${RED} ERROR: /boot is not mounted. upgrading without /boot mounted can cause damage."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue