init: warn if auto script exists but is not executable

This commit is contained in:
Lyndon Brown 2020-04-28 15:23:01 +01:00
parent a8a6addaf5
commit 51903da073
1 changed files with 2 additions and 0 deletions

View File

@ -79,5 +79,7 @@ Maybe_auto_redirect ()
Echo_message "Executing ${AUTO_SCRIPT} script."
./"${AUTO_SCRIPT}" "${@}"
exit ${?}
elif [ -f "${AUTO_SCRIPT}" ]; then
Echo_warning "The ${AUTO_SCRIPT} script exists but is not executable, ignoring."
fi
}