💥 scripts(install): fix script only checks directories integrity

This commit is contained in:
retrozinndev
2025-05-15 16:44:34 -03:00
parent 4b7bdfde8a
commit 9275d43126
+1 -1
View File
@@ -25,7 +25,7 @@ function Apply_wallpapers() {
}
for dir in ${config_dirs[@]}; do
if ! [[ -d ./$dir ]]; then
if [[ ! -d "./$dir" ]] || [[ ! -f "./$dir" ]]; then
Send_log error "$dir is in fault, or you didn't run this script in its directory!"
exit 1
fi