updating install.sh for the new layout
This commit is contained in:
parent
805c6ade38
commit
af96bcf0a3
12
install.sh
12
install.sh
@ -10,17 +10,13 @@ if [ ! -d ~/.emacs.d ]; then
|
|||||||
git clone https://github.com/walkah/emacs.d.git ~/.emacs.d
|
git clone https://github.com/walkah/emacs.d.git ~/.emacs.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOTFILES=`cd $(dirname $0); pwd`
|
DOTFILES=`cd $(dirname $0)/home; pwd`
|
||||||
|
|
||||||
for FILE in $DOTFILES/*; do
|
for FILE in `ls -a $DOTFILES`; do
|
||||||
NAME=`basename $FILE`
|
NAME=`basename $FILE`
|
||||||
if [ $NAME == 'bin' ]; then
|
TARGET=$HOME/$NAME
|
||||||
TARGET=$HOME/bin
|
|
||||||
else
|
|
||||||
TARGET=$HOME/.$NAME
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $NAME != 'install.sh' ]; then
|
if [ $NAME != '.' ] && [ $NAME != '..' ]; then
|
||||||
if [ -L $TARGET ]; then
|
if [ -L $TARGET ]; then
|
||||||
echo "$TARGET exists"
|
echo "$TARGET exists"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user