mirror of
https://github.com/SangeloDev/niminit.git
synced 2024-12-28 01:22:41 +00:00
Undo error catching
This commit is contained in:
parent
366f46cdd6
commit
b2012ce370
1 changed files with 9 additions and 13 deletions
22
install.sh
22
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"
|
||||
|
|
Loading…
Reference in a new issue