Skip to content

Commit

Permalink
Merge pull request #53 from angulo-solido/fix-#41
Browse files Browse the repository at this point in the history
scripts: install: Remove exit when createing directories
  • Loading branch information
MiguelNdeCarvalho authored May 13, 2022
2 parents c6e12e3 + a0d5671 commit 6fd3470
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ check_preexisting_install () {
read -r -p "Do you want to replace it? [y/N] " response
case "$response" in
[yY])
rm -rf "$INSTALL_DIR" "$BIN_FILE"
;;
*)
echo "Aborting installation."
Expand All @@ -70,11 +71,11 @@ check_preexisting_install () {

install () {
# Copy distribution files to the installation directory
mkdir -p "$INSTALL_DIR" || exit 1
mkdir -p "$INSTALL_DIR"
cp -a "$INSTALLER_DIST_DIR" "$INSTALL_DIR" || exit 1

# Copy binaries to user's bin directory
mkdir -p "$BINS_DIR" || exit 1
mkdir -p "$BINS_DIR"
ln -s "$INSTALL_DIR/terrabutler" "$BIN_FILE" || exit 1

printf "Install has finished successfully.\nYou may now use '%s' command.\n" "$BIN_FILE"
Expand Down

0 comments on commit 6fd3470

Please sign in to comment.