mirror of
https://github.com/golang/go
synced 2024-11-17 05:14:56 -07:00
01b9656fce
The path /bin/bash is not available on all operating systems. Use /usr/bin/env bash to find the system bash interpreter. Change-Id: I493e462a8e261b7fbbd3f3c0b1d10e55c5ed783b Reviewed-on: https://go-review.googlesource.com/c/go/+/463977 Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Evan Phoenix <evan@phx.io>
15 lines
454 B
Bash
Executable File
15 lines
454 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2018 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
while [ -h "$SOURCE" ]; do
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
SOURCE="$(readlink "$SOURCE")"
|
|
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
|
done
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
|
|
exec node "$DIR/wasm_exec_node.js" "$@"
|