Use double-quotes properly

This commit is contained in:
Jack Jackson 2022-12-29 21:36:20 -08:00
parent d5df1316f8
commit ef597454d5

View File

@ -20,7 +20,7 @@ git add "$PLUGIN_DESTINATION_FILE"
git config user.email "$PLUGIN_AUTHOR_EMAIL" git config user.email "$PLUGIN_AUTHOR_EMAIL"
git config user.name "$PLUGIN_AUTHOR_NAME" git config user.name "$PLUGIN_AUTHOR_NAME"
# https://stackoverflow.com/a/31926346/1040915 # https://stackoverflow.com/a/31926346/1040915
git commit -m '$(echo "$PLUGIN_COMMIT_MESSAGE" | envsubst)' git commit -m "$(echo $PLUGIN_COMMIT_MESSAGE | envsubst)"
# https://stackoverflow.com/a/6174447/1040915 # https://stackoverflow.com/a/6174447/1040915
git remote add origin-with-credentials "$(echo $PLUGIN_GIT_REPO | sed -e's,^\(.*://\).*,\1,g')""$PLUGIN_ACCESS_TOKEN@""$(echo $PLUGIN_GIT_REPO | sed -e's,^.*://\(.*\),\1,g')" git remote add origin-with-credentials "$(echo $PLUGIN_GIT_REPO | sed -e's,^\(.*://\).*,\1,g')""$PLUGIN_ACCESS_TOKEN@""$(echo $PLUGIN_GIT_REPO | sed -e's,^.*://\(.*\),\1,g')"
git push origin-with-credentials "$PLUGIN_BRANCH":"$PLUGIN_BRANCH" git push origin-with-credentials "$PLUGIN_BRANCH":"$PLUGIN_BRANCH"