Skip to content

Commit

Permalink
fix: Linux double quotes for metadata variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alienc0der committed Sep 12, 2023
1 parent 41a571d commit 56bbfb1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions linux/create-git-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ GIT_COMMIT_FILE="../lib/utils/metadata.dart"

sed --i '1,5d' $GIT_COMMIT_FILE

echo "const String gitBranchName = \\\"${GIT_BRANCH_NAME}\\\";" >> $GIT_COMMIT_FILE
echo "const String gitCommitHash = \\\"${GIT_COMMIT_HASH}\\\";" >> $GIT_COMMIT_FILE
echo "const String gitCommitMessage = \\\"${GIT_COMMIT_MESSAGE}\\\";" >> $GIT_COMMIT_FILE
echo "const String gitCommitDate = \\\"${GIT_COMMIT_DATE}\\\";" >> $GIT_COMMIT_FILE
echo "const String gitOriginUrl = \\\"${GIT_ORIGIN_URL}\\\";" >> $GIT_COMMIT_FILE
echo "const String gitBranchName = \"${GIT_BRANCH_NAME}\";" >> $GIT_COMMIT_FILE
echo "const String gitCommitHash = \"${GIT_COMMIT_HASH}\";" >> $GIT_COMMIT_FILE
echo "const String gitCommitMessage = \"${GIT_COMMIT_MESSAGE}\";" >> $GIT_COMMIT_FILE
echo "const String gitCommitDate = \"${GIT_COMMIT_DATE}\";" >> $GIT_COMMIT_FILE
echo "const String gitOriginUrl = \"${GIT_ORIGIN_URL}\";" >> $GIT_COMMIT_FILE

0 comments on commit 56bbfb1

Please sign in to comment.