0
什麼是錯的4號線未被如果說語法錯誤什麼是在4號線沒有錯,如果
if user["passwordexpire"]
execute 'Passwordexpire sudo login' do
command "chage -I \-1 -m 0 -M 99999 -E \-1 #{user['id']}"
not_if "grep -qs 'ls -1 | grep "^#{user['id']}"' /etc/shadow | grep 99999"
end
end
end
它顯示語法錯誤
雙引號內的雙引號? – StephenKing
在這裏打開語法高亮顯示也會使其可見:-p – StephenKing
設置此答案 – coderanger