-#!/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}`
relfile=`echo ${file} | sed 's_.*/\([^/]*/[^/]*\)$_\1_'`
# skip files which we don't want to link
- if [ "${basefile}" == ".git" ]; then
- continue;
- fi
+ [ "${basefile}" == ".git" ] && continue
+ [ "${basefile}" == ".gitignore" ] && continue
pushd .. > /dev/null
if [ -L ${basefile} ]; then