From 35bf7f00c0650ace8cdf75b62724cf8e57f62de6 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 8 Apr 2014 11:34:08 -0700 Subject: [PATCH] tweaks to bootstrap for debian compatibility. --- bootstrap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 23ef2cd9..f46bf606 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash case `uname` in 'Darwin') readlink_command='greadlink' @@ -6,7 +6,7 @@ case `uname` in *) readlink_command='readlink' esac -DOTFILES_DIRECTORY="$(dirname "${BASH_SOURCE}" | xargs "${readlink_command}" -f)/dotfiles" +DOTFILES_DIRECTORY="$(dirname "${BASH_SOURCE}" | xargs ${readlink_command} -f)/dotfiles" function symlink_dotfiles() { cd $DOTFILES_DIRECTORY @@ -22,7 +22,7 @@ function symlink_dotfiles() { [[ -a ~/.dotfiles-backups ]] && mv ~/.dotfiles-backups.old ~/.dotfiles-backups/.dotfiles-backups } -if [ "$1" == "--force" -o "$1" == "-f" ]; then +if [ "$1" = "--force" -o "$1" = "-f" ]; then symlink_dotfiles else read -p "Symlinking files from $DOTFILES_DIRECTORY. This may overwrite existing files in your home directory. Do you wish to proceed? (y/n) " -n 1