From ee58818b173a6b533adf7107ce458eefb26e8eac Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 1 Sep 2025 14:12:00 -0400 Subject: Update brewfile/install script --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 014c510..4c1033f 100755 --- a/install.sh +++ b/install.sh @@ -1,8 +1,8 @@ -#!/usr/bin/env bash +#!/bin/sh # # Install the Homebrew Brewfile and setup symbolic links to the # dotfiles. -set -eou pipefail +set -e main() { if ! command -v brew >/dev/null 2>&1; then @@ -53,7 +53,7 @@ main() { prompt_for_confirmation() { printf "%s [y/n]: " "$1" read -r answer - if [[ "$answer" != "${answer#[Yy]}" ]]; then + if [ "$answer" != "${answer#[Yy]}" ]; then return 0 else return 1 @@ -78,8 +78,8 @@ install_homebrew() { } setup_tpm() { - local tpm_dir="$HOME/.config/tpm/plugins/tpm" - if [[ ! -d "$tpm_dir" ]]; then + tpm_dir="$HOME/.config/tpm/plugins/tpm" + if [ ! -d "$tpm_dir" ]; then echo "Cloning TPM..." git clone https://github.com/tmux-plugins/tpm "$tpm_dir" else -- cgit v1.2.3