-#!/bin/sh
+#!/bin/bash
#
# install-symlinks.sh
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}`
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}..."