projects
/
cmccabe-etc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
14cc81b
)
install-symlinks: don't use readlink -f
author
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Mon, 27 Sep 2010 17:34:23 +0000 (10:34 -0700)
committer
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Mon, 27 Sep 2010 17:34:23 +0000 (10:34 -0700)
readlink -f is a linux-ism that doesn't work on MacOS or BSD. Just use
pwd instead.
install-symlinks.sh
patch
|
blob
|
history
diff --git
a/install-symlinks.sh
b/install-symlinks.sh
index
41bda44
..
d381326
100755
(executable)
--- a/
install-symlinks.sh
+++ b/
install-symlinks.sh
@@
-15,8
+15,7
@@
die() {
exit 1
}
-FULLPATH=`readlink -f $0`
-BASEDIR=`dirname ${FULLPATH}`
+BASEDIR=`pwd`
for file in ${BASEDIR}/.[^.]*; do
# get base file name, like ".gitconfig"
basefile=`basename ${file}`