Ticket #52827: patch-symbolic-link-fix.diff

File patch-symbolic-link-fix.diff, 312 bytes (added by isomarcte (David Strawn), 8 years ago)

Patch to allow for using the yarn bash wrapper from a symbolic link (credit goes to jambonrose)

  • bin/yarn

    old new  
    11#!/bin/sh
    2 basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
     2basedir=$(dirname "$(readlink -e "$0" | sed -e 's,\\,/,g')")
    33
    44case `uname` in
    55  *CYGWIN*) basedir=`cygpath -w "$basedir"`;;