From 657b47e1b30d28760fab639532cd42535da9a097 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 11 Jul 2017 20:25:35 -0400 Subject: [PATCH] Address feedback around printf & exec --- scripts/install-darwin-multi-user.sh | 2 +- scripts/install-nix-from-closure.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-darwin-multi-user.sh b/scripts/install-darwin-multi-user.sh index 3901ebe2d..01a0e4ffb 100644 --- a/scripts/install-darwin-multi-user.sh +++ b/scripts/install-darwin-multi-user.sh @@ -199,7 +199,7 @@ __sudo() { echo "I am executing:" echo "" - echo " $ sudo $cmd" + printf " $ sudo %s\n" "$cmd" echo "" echo "$expl" echo "" diff --git a/scripts/install-nix-from-closure.sh b/scripts/install-nix-from-closure.sh index dd826c423..9d395020e 100644 --- a/scripts/install-nix-from-closure.sh +++ b/scripts/install-nix-from-closure.sh @@ -30,7 +30,7 @@ if [ "$(uname -s)" = "Darwin" ]; then fi printf '\e[1;31mSwitching to the Multi-User Darwin Installer\e[0m\n' - "$self/install-darwin-multi-user" + exec "$self/install-darwin-multi-user" exit 0 fi