projects
/
cmccabe-etc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a52fadc
)
Fix bug in install-symlinks
author
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Thu, 18 Feb 2010 23:19:58 +0000 (15:19 -0800)
committer
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Thu, 18 Feb 2010 23:19:58 +0000 (15:19 -0800)
Fix a bug in install-symlinks where we were unable to recognize
non-existant files
install-symlinks.sh
patch
|
blob
|
history
diff --git
a/install-symlinks.sh
b/install-symlinks.sh
index
3588ed2
..
f922179
100755
(executable)
--- a/
install-symlinks.sh
+++ b/
install-symlinks.sh
@@
-33,7
+33,7
@@
for file in ${BASEDIR}/.[^.]*; do
if [ -L ${basefile} ]; then
# Someone already created this link. Pass over it in silence
:
- elif [ -z ${basefile} ]; then
+ elif [ ! -a ${basefile} ]; then
# Create the link
ln -s ${relfile} || die "failed to link ${relfile}"
echo "created ${relfile}..."