init: warn if auto script exists but is not executable
This commit is contained in:
parent
a8a6addaf5
commit
51903da073
|
@ -79,5 +79,7 @@ Maybe_auto_redirect ()
|
||||||
Echo_message "Executing ${AUTO_SCRIPT} script."
|
Echo_message "Executing ${AUTO_SCRIPT} script."
|
||||||
./"${AUTO_SCRIPT}" "${@}"
|
./"${AUTO_SCRIPT}" "${@}"
|
||||||
exit ${?}
|
exit ${?}
|
||||||
|
elif [ -f "${AUTO_SCRIPT}" ]; then
|
||||||
|
Echo_warning "The ${AUTO_SCRIPT} script exists but is not executable, ignoring."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue