Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a420d2 commit a085d48Copy full SHA for a085d48
‎lib/actions/configure.sh‎
@@ -140,13 +140,14 @@ gh_set_env() {
140
local content
141
if [ -n "$file" ]; then
142
if [ "$base64_encode" = true ]; then
143
- content=$(base64_encode "$file")
+ # Normalize line endings before encoding to ensure cross-platform compatibility
144
+ content=$(tr -d '\r' < "$file" | base64_encode -)
145
else
146
content=$(<"$file")
147
fi
148
149
- content=$(echo -n "$value" | base64_encode -)
150
+ content=$(printf '%s' "$value" | base64_encode -)
151
152
content="$value"
153
0 commit comments