X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=install-symlinks.sh;h=41bda44f2b8504add2cdc3997999c67cd3737a2c;hb=798aff79d41ca995ea455a6102037340384ef0d2;hp=3588ed2e344e1110a991418bbeff214acdbc2477;hpb=a52fadc70df8054a6017d899f53a635f4fcdb82f;p=cmccabe-etc diff --git a/install-symlinks.sh b/install-symlinks.sh index 3588ed2..41bda44 100755 --- a/install-symlinks.sh +++ b/install-symlinks.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # 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}..."