From 85fb8532fd68475ac2ad10cde16bc0d0421acb8a Mon Sep 17 00:00:00 2001 From: alvinlollo Date: Thu, 30 Jan 2025 03:23:36 +0000 Subject: [PATCH] update --- install.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/install.sh b/install.sh index d6b7208..f0886dc 100755 --- a/install.sh +++ b/install.sh @@ -15,18 +15,6 @@ echo ' --------------- Single Download script --------------- ' -# Prints its arguments to stderr and exits with a non-zero value. -# -# If no arguments are given, it exits with the current value of $?. -# If arguments are given, it exits with 1. -# -# This function is intended to be used to print error messages. -die() { - rc=$? - (( $# )) && printf '%s\n' "$*" >&2 - exit "$(( rc == 0 ? 1 : rc ))" -} - # Fail on any command. set -eux pipefail @@ -61,7 +49,7 @@ brew install eza fzf gcc thefuck gh set +eux # Install Oh-My-zsh -sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" || die "zsh might already be installed" +sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # Enable exit on error set -eux