Skip to content

Commit c811fc7

Browse files
committed
fix replace_tag bug
1 parent c4b7faa commit c811fc7

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/onestep.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ function replace_tag()
139139
sed -i "" "s/^export $key=.*/export $key=$TAG/" $file
140140
else
141141
# PRE_COMPILE_TAG_IOS not found, append PRE_COMPILE_TAG_IOS
142-
echo "export $key=$TAG" >> $file
142+
[ -n "$(tail -c1 "$file")" ] && echo "" >> "$file"
143+
echo "export $key=$TAG" >> "$file"
143144
fi
144145
}
145146

configs/libs/dovi.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ if [[ "$GIT_DOVI_UPSTREAM" != "" ]] ;then
2828
export GIT_UPSTREAM="$GIT_DOVI_UPSTREAM"
2929
else
3030
export GIT_UPSTREAM=https://github.com/quietvoid/dovi_tool.git
31-
fiexport PRE_COMPILE_TAG_MACOS=dovi-3.3.2-260326175522
31+
fi
32+
33+
export PRE_COMPILE_TAG_MACOS=dovi-3.3.2-260326175522

0 commit comments

Comments
 (0)