diff --git a/bin/initDesktop b/bin/initDesktop index 67e90dc..b90cd45 100755 --- a/bin/initDesktop +++ b/bin/initDesktop @@ -57,7 +57,7 @@ function gnome_key_bindings(){ } function setup_dotfiles(){ - local dotf="/usr/bin/git --git-dir=$DOTFILES_REPO --work-tree=$HOME" + local dotf="git --git-dir=$DOTFILES_REPO --work-tree=$HOME" new_log "Setting up dotf (dotfiles)" if asktobreak;then return @@ -65,10 +65,10 @@ function setup_dotfiles(){ log "creating git repo in $DOTFILES_REPO" mkdir "$HOME/.dotfiles" git init --bare "$DOTFILES_REPO" - "$dotf" config --local status.showUntrackedFiles no + $dotf config --local status.showUntrackedFiles no log "adding remote repo ($DOTFILES_REMOTE)" - "$dotf" remote add origin "$DOTFILES_REMOTE" + $dotf remote add origin "$DOTFILES_REMOTE" for file in "${DOTFILES_RENAME_EXISTING_FILES[@]}"; do @@ -80,8 +80,8 @@ function setup_dotfiles(){ done log "fetching dotfiles" - "$dotf" fetch origin - "$dotf" checkout master + $dotf fetch origin + $dotf checkout master } function do_salt_call(){