Disable configs by marking them as nonexecuable

This commit is contained in:
Salt 2020-07-08 02:18:19 -05:00
parent 9bf854d22f
commit 0d641e3677

View File

@ -79,6 +79,10 @@ gettarget() {
warn "Target is a directory: $1" 2
return 50
fi
if ! [ -x "$1" ]; then
warn "Target is disabled: $1" 2
return 51
fi
local firstline
while read -r checkline; do
if [ -z "$firstline" ]; then