mirror of
https://github.com/Le0xFF/VoidLinuxInstaller.git
synced 2024-11-22 11:16:22 +03:00
Forgot to close if once again
This commit is contained in:
parent
cc1ae450c7
commit
57ed955d29
7
vli.sh
7
vli.sh
@ -562,9 +562,10 @@ function void_packages {
|
||||
|
||||
if [[ ! -d "\$void_packages_path" ]] ; then
|
||||
if ! \$(su - \$void_packages_username --command "mkdir -p \$void_packages_path") ; then
|
||||
echo -e -n "\nUser \${RED_LIGHT}\$void_packages_username\${NORMAL} cannot create a folder in this directory.\nPlease select another path.\n\n"
|
||||
read -n 1 -r -p "[Press any key to continue...]" key
|
||||
break
|
||||
echo -e -n "\nUser \${RED_LIGHT}\$void_packages_username\${NORMAL} cannot create a folder in this directory.\nPlease select another path.\n\n"
|
||||
read -n 1 -r -p "[Press any key to continue...]" key
|
||||
break
|
||||
fi
|
||||
else
|
||||
if [[ \$(stat --dereference --format="%U" \$void_packages_path) != "\$void_packages_username" ]] ; then
|
||||
echo -e -n "\nUser \${RED_LIGHT}\$void_packages_username\${NORMAL} doesn't have write permission in this directory.\nPlease select another path.\n\n"
|
||||
|
Loading…
Reference in New Issue
Block a user