Forgot to close if once again

This commit is contained in:
Le0xFF 2022-08-22 18:44:30 +02:00
parent cc1ae450c7
commit 57ed955d29

7
vli.sh
View File

@ -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"