mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix '~' expansion in build-deb... (properly this time)
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
parent
1ab875b38b
commit
297cd347a6
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ DEST=$1
|
|||
|
||||
# TODO consider using frozen images for the dockercore/builder-deb tags
|
||||
|
||||
debVersion="${VERSION//-/~}"
|
||||
tilde='~' # ouch Bash 4.2 vs 4.3, you keel me
|
||||
debVersion="${VERSION//-/$tilde}" # using \~ or '~' here works in 4.3, but not 4.2; just ~ causes $HOME to be inserted, hence the $tilde
|
||||
# if we have a "-dev" suffix or have change in Git, let's make this package version more complex so it works better
|
||||
if [[ "$VERSION" == *-dev ]] || [ -n "$(git status --porcelain)" ]; then
|
||||
gitUnix="$(git log -1 --pretty='%at')"
|
||||
|
|
Loading…
Reference in a new issue