diff --git a/install.sh b/install.sh index 8a98f76..045ae24 100755 --- a/install.sh +++ b/install.sh @@ -1,12 +1,19 @@ #!/bin/bash +GLOBIGNORE=".:.." + DIR=$(dirname $(readlink -f $0)); -DIRS="/boot/syslinux /etc/lightdm /etc/X11/xorg.conf.d /etc/skel /usr/share/wallpapers" +DIRS="/boot/syslinux /etc /etc/lightdm /etc/X11/xorg.conf.d /etc/skel /usr/share/wallpapers" for dir in $DIRS; do if [ -d "$DIR$dir" ]; then for script in $DIR$dir/*; do - echo "Loading xinit script $script" + echo $script + + if [ -d "$script" ]; then + echo "$script is a directory" + continue; + fi filename=$(basename $script) @@ -19,24 +26,3 @@ for dir in $DIRS; do done fi done - - -#echo 'Creating link to local zshrc' -#ln -s ~/archlinux-installation/zshrc.local ~/.zshrc.local -# -#echo 'link vimrc' -#ln -s ~/dotfiles/vimrc ~/.vimrc -#echo 'installing vundle' -#git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim -# -#echo 'linking tmux' -#ln -s ~/dotfiles/tmux.conf ~/.tmux.conf -# -#echo 'linking ssh config' -#ln -s ~/dotfiles/ssh/config ~/.ssh/config -# -#echo "linking gitignore" -#ln -s ~/dotfiles/gitignore ~/.gitignore -# -#echo "linking zshenv" -#ln -s ~/dotfiles/zshenv ~/.zshenv