commit 74c2de6a4d3aea07f692fe460f3d6b299df8e0da parent c767255ebac6bb9c1e508a781abaa10fc5b2de79 Author: Alex Balgavy <EMAIL> Date: Sun, 13 Jan 2019 22:38:11 +0100 Fixed indentation Former-commit-id: d88c39ecd731974af7c880efec2276bc3bd7e3eb Diffstat:
M | install.sh | | | 46 | +++++++++++++++++++++++----------------------- |
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/install.sh b/install.sh @@ -4,29 +4,29 @@ # Preliminary checks {{{ # Check if this directory was cloned properly if [ $(pwd) != "$HOME/.dotfiles" ]; then - echo "Please clone this directory as $HOME/.dotfiles." - exit 1 + echo "Please clone this directory as $HOME/.dotfiles." + exit 1 fi if ! [ -f "./install.sh" ]; then - echo "Please cd into $HOME/.dotfiles before running the script." - exit 1 + echo "Please cd into $HOME/.dotfiles before running the script." + exit 1 fi # Check if the OS is supported if [[ $(uname -s) == "Darwin" ]]; then - echo "Setting up your Mac..." - if ! command -v brew &> /dev/null; then - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - fi - if [ -f "Brewfile" ]; then - brew bundle - fi + echo "Setting up your Mac..." + if ! command -v brew &> /dev/null; then + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + fi + if [ -f "Brewfile" ]; then + brew bundle + fi elif [[ $(uname -s) == "Linux" ]]; then - echo "Setting up your Linux environment..." + echo "Setting up your Linux environment..." else - echo "This OS isn't supported yet." - exit 1 + echo "This OS isn't supported yet." + exit 1 fi #}}} @@ -36,15 +36,15 @@ export CONF_DIR="$HOME/.dotfiles" read -n 1 -p "Install all dotfiles? [Y/n]" yn echo case $yn in - [Yy]* ) - bin/conf use $(find . ! -iwholename '*.git*' -type d -d 1) - echo "Dotfiles installed." - echo "Run \`conf\` for more help." - ;; - * ) - echo "No dotfiles installed automatically." - echo "Run \`bin/conf\` for more help." - ;; + [Yy]* ) + bin/conf use $(find . ! -iwholename '*.git*' -type d -d 1) + echo "Dotfiles installed." + echo "Run \`conf\` for more help." + ;; + * ) + echo "No dotfiles installed automatically." + echo "Run \`bin/conf\` for more help." + ;; esac echo "Don't forget to create a ~/.secret_env_variables with:"