Skip to content

Commit 78796b2

Browse files
authored
fix(run): Fix stat command when fetch array (#67)
1 parent a39e27f commit 78796b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ else
2626
fi
2727

2828
# Set up working directory
29-
owner=$("${stat_cmd}" "%u:%g" .)
29+
owner=$("${stat_cmd[@]}" "%u:%g" .)
3030
chown -R "$(id -u)" .
3131

3232
# Create the output directory
@@ -66,7 +66,7 @@ GIT_CLIFF_OUTPUT="$CONTEXT" "$GIT_CLIFF_PATH" --context "${args[@]}"
6666
chown -R "$owner" .
6767

6868
# Set the changelog content (max: 50MB)
69-
FILESIZE=$("${stat_cmd}" %s "$OUTPUT")
69+
FILESIZE=$("${stat_cmd[@]}" %s "$OUTPUT")
7070
MAXSIZE=$((40 * 1024 * 1024))
7171
if [ "$FILESIZE" -le "$MAXSIZE" ]; then
7272
echo "content<<EOF" >>$GITHUB_OUTPUT

0 commit comments

Comments
 (0)