bug fixed

This commit is contained in:
병준 박 2025-04-08 14:46:20 +00:00
parent d9d817fed2
commit 2c3cd1a258

View File

@ -122,11 +122,9 @@ spec:
chmod -R 400 "${PARAM_USER_HOME}/.ssh/*"
fi
if [ -f "$(params.GIT_USER_EMAIL)" ]; then
git config --global user.email "$(params.GIT_USER_EMAIL)"
fi
if [ -f "$(params.GIT_USER_NAME)" ]; then
if [ -n "$(params.GIT_USER_NAME)" ] && [ -n "$(params.GIT_USER_EMAIL)" ]; then
git config --global user.name "$(params.GIT_USER_NAME)"
git config --global user.email "$(params.GIT_USER_EMAIL)"
fi
eval '$(params.GIT_SCRIPT)'