-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: getting version to just extract version.
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/sh | ||
re='s/github.com\/GoogleCloudPlatform\///g' | ||
cat go.mod| grep deploystack | head -1 | sed $re | xargs > versionDS | ||
# Don't judge me. I'm sure there's a one liner that could do it. Sometimes | ||
# you just want it to work and be done with it. | ||
re1='s/github.com\/GoogleCloudPlatform\///g' | ||
re2='s/require//g' | ||
re3='s/deploystack//g' | ||
cat go.mod| grep deploystack | head -1 | sed $re1 | sed $re2 | sed $re3 |xargs > versionDS | ||
date +"%m-%d-%Y %r %Z" | xargs > buildTime |