Browse code

Make hack/make.sh work on FreeBSD

Signed-off-by: Alexey Guskov <lexag@mail.ru>

Alexey Guskov authored on 2015/05/26 21:54:08
Showing 1 changed files
... ...
@@ -290,7 +290,12 @@ main() {
290 290
 
291 291
 	if [ "$(go env GOHOSTOS)" != 'windows' ]; then
292 292
 		# Windows and symlinks don't get along well
293
-		ln -sfT "$VERSION" bundles/latest
293
+
294
+		if [ "$(go env GOHOSTOS)" != 'freebsd' ]; then
295
+			ln -sfT "$VERSION" bundles/latest
296
+		else 
297
+			ln -sfh "$VERSION" bundles/latest
298
+		fi
294 299
 	fi
295 300
 
296 301
 	if [ $# -lt 1 ]; then