Browse code

Fix '~' expansion in build-deb... (properly this time)

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>

Tianon Gravi authored on 2015/05/08 05:02:21
Showing 1 changed files
... ...
@@ -9,7 +9,8 @@ DEST=$1
9 9
 
10 10
 	# TODO consider using frozen images for the dockercore/builder-deb tags
11 11
 
12
-	debVersion="${VERSION//-/~}"
12
+	tilde='~' # ouch Bash 4.2 vs 4.3, you keel me
13
+	debVersion="${VERSION//-/$tilde}" # using \~ or '~' here works in 4.3, but not 4.2; just ~ causes $HOME to be inserted, hence the $tilde
13 14
 	# if we have a "-dev" suffix or have change in Git, let's make this package version more complex so it works better
14 15
 	if [[ "$VERSION" == *-dev ]] || [ -n "$(git status --porcelain)" ]; then
15 16
 		gitUnix="$(git log -1 --pretty='%at')"