aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-09-01 14:12:00 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-09-01 14:12:00 -0400
commitee58818b173a6b533adf7107ce458eefb26e8eac (patch)
treebea50ef2bafa6615bec4341b68c0a2d019c7f064 /install.sh
parentUpdate brewfile (diff)
downloaddotfiles-ee58818b173a6b533adf7107ce458eefb26e8eac.zip
Update brewfile/install script
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh10
1 files changed, 5 insertions, 5 deletions
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