diff options
author | 2010-12-06 12:51:18 +0100 | |
---|---|---|
committer | 2010-12-06 12:51:18 +0100 | |
commit | 433fb1da5006eb4a2c1667ad0d189d920bd87ce2 (patch) | |
tree | 910e9daa10d9db781b5b2f5bf2aec3b8e07b3b72 | |
parent | 2527e1a0d10daf42bbe2f9fd25fe81b38d26ef8f (diff) | |
download | dotfiles-433fb1da5006eb4a2c1667ad0d189d920bd87ce2.tar.gz dotfiles-433fb1da5006eb4a2c1667ad0d189d920bd87ce2.zip |
Mac doesn't have readlink -f the way linux seems to
-rwxr-xr-x | install.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,8 @@ #!/bin/bash INSTALL_BASEFILE=`readlink -f $0` +if [ -z $INSTALL_BASEFILE ]; then + INSTALL_BASEFILE="$PWD/$0" +fi INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE` CMD="ln -sfn" |