From b2012ce3707f5beb2ee871be4ebc3bbd497fc7c1 Mon Sep 17 00:00:00 2001 From: Sangelo Date: Mon, 6 Mar 2023 22:37:24 +0100 Subject: [PATCH] Undo error catching --- install.sh | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index 799affd..4387686 100755 --- a/install.sh +++ b/install.sh @@ -18,19 +18,15 @@ if [[ $OSTYPE == 'darwin'* ]]; then esac fi -{ - # Compile program - nim c -o:bin/niminit niminit && - # Create local bin folder if it doesn't exist - mkdir -p $HOME/.local/bin && - # Copy binary to local bin folder - cp bin/niminit $HOME/.local/bin/niminit && - # Create config directory & copy files - mkdir -p $HOME/.config/niminit && - cp config/* $HOME/.config/niminit && -} || { - echo "ERROR: The script errored. There might be some clues above this line." -} +# Compile program +nim c -o:bin/niminit niminit && +# Create local bin folder if it doesn't exist +mkdir -p $HOME/.local/bin && +# Copy binary to local bin folder +cp bin/niminit $HOME/.local/bin/niminit && +# Create config directory & copy files +mkdir -p $HOME/.config/niminit && +cp config/* $HOME/.config/niminit && # Print info message to export local bin if not already printf "\n"