mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 07:25:43 +08:00
fix(run): properly pass arguments as an array (#56)
This commit is contained in:
4
run.sh
4
run.sh
@@ -43,12 +43,12 @@ for arg in "$@"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Execute git-cliff
|
# Execute git-cliff
|
||||||
GIT_CLIFF_OUTPUT="$OUTPUT" "$GIT_CLIFF_PATH" $args
|
GIT_CLIFF_OUTPUT="$OUTPUT" "$GIT_CLIFF_PATH" "${args[@]}"
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
|
|
||||||
# Retrieve context
|
# Retrieve context
|
||||||
CONTEXT="$(mktemp)"
|
CONTEXT="$(mktemp)"
|
||||||
GIT_CLIFF_OUTPUT="$CONTEXT" "$GIT_CLIFF_PATH" --context $args
|
GIT_CLIFF_OUTPUT="$CONTEXT" "$GIT_CLIFF_PATH" --context "${args[@]}"
|
||||||
|
|
||||||
# Revert permissions
|
# Revert permissions
|
||||||
chown -R "$owner" .
|
chown -R "$owner" .
|
||||||
|
|||||||
Reference in New Issue
Block a user