mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-23 00:06:45 +10:00
update
This commit is contained in:
+1
-13
@@ -15,18 +15,6 @@ echo '
|
|||||||
--------------- Single Download script ---------------
|
--------------- 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.
|
# Fail on any command.
|
||||||
set -eux pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
@@ -61,7 +49,7 @@ brew install eza fzf gcc thefuck gh
|
|||||||
set +eux
|
set +eux
|
||||||
|
|
||||||
# Install Oh-My-zsh
|
# 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
|
# Enable exit on error
|
||||||
set -eux
|
set -eux
|
||||||
|
|||||||
Reference in New Issue
Block a user