From 14f76e61f74507f840d9c5584e263bbf4984f6e0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 23 Dec 2015 06:30:48 -0500 Subject: [PATCH] Fix install.sh --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 5d758a2e..08d906bc 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _clone() { [[ -d "$2" ]] || git clone --recursve "$1" "$2"; } @@ -6,12 +6,12 @@ _clone() { [[ -d "$2" ]] || git clone --recursve "$1" "$2"; } _clone https://github.com/hlissner/dotfiles ~/.dotfiles shopt -s extglob -for rcfile in "${HOME}/.dotfiles/!(.*|bin|scripts|*.md|install.sh)" +for rcfile in "${HOME}"/.dotfiles/!(.*|bin|scripts|*.md|install.sh) do filep="$HOME/."$(basename "$rcfile") [ "$1" == "--force" ] && rm -f "$filep" - [ -e "$filep" ] || ln -vsF "$rcfile" $filep + [ -e "$filep" ] || ln -vs "$rcfile" "$filep" done # Install fzf and fasd