diff --git a/compiler/cli/bin/kotlinc b/compiler/cli/bin/kotlinc index 0300146518b..ba5bcad2564 100755 --- a/compiler/cli/bin/kotlinc +++ b/compiler/cli/bin/kotlinc @@ -14,4 +14,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -$(dirname $0)/kotlinc-jvm "$@" +"$(dirname "$(which "$0")")"/kotlinc-jvm "$@"