Explorar o código

Robust setup.sh

Tom %!s(int64=12) %!d(string=hai) anos
pai
achega
d9edaaa020
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  1. 1 6
      setup.sh

+ 1 - 6
setup.sh

@@ -1,15 +1,10 @@
 # symlink dotfiles
-SCRIPT_PATH=`realpath $0`
-dotfiles=`dirname $SCRIPT_PATH`
+dir=~/dotfiles
 olddir=~/dotfiles_old   # backup directory
-
-
 files=".bashrc .vimrc .bash_logout .gitconfig"    # list of files/folders to symlink in homedir
 
 ## create dotfiles_old in homedir
-echo "Creating $olddir for backup"
 mkdir -p $olddir
-cd $dotfiles
 
 ## move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
 for file in $files; do