From 84f91cee7e8129e10dbdf65e0e1c1a97813b92c0 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Wed, 26 Feb 2020 16:15:38 +0000 Subject: [PATCH] update shebang --- bootstrap.sh | 3 ++- install.sh | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index d4d850e..04fc669 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash -o pipefail +#!/usr/bin/env bash # # Script to set up dotfiles repository and run installer. # @@ -33,6 +33,7 @@ # @default "install.sh" # # +set -o pipefail echo "setting up..." # Variables: $REPOSITORY diff --git a/install.sh b/install.sh index 5e1bda6..805e123 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,8 @@ -#!/usr/bin/env bash -euo pipefail +#!/usr/bin/env bash # # Invokes all install scripts. # +set -euo pipefail source "$dotfiles_dir/utils.sh" printf "Installing ${C_CYAN}$REPOSITORY${C_NC}" printf " as ${C_YELLOW}$USER${C_NC}\n\n" @@ -22,6 +23,9 @@ if [ -f "$install_lock_file" ]; then fi touch "$install_lock_file" # Requires clean +# Ensure MAKE is installed +if not_installed "make"; then install make; fi + # Run all install scripts readonly install_dir="$dotfiles_dir/install" readonly script_filter="$install_dir/*.sh" # Don't escape to unwrap glob