about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-07-12T00·25-0400
committerGraham Christensen <graham@grahamc.com>2017-07-14T16·11-0400
commit657b47e1b30d28760fab639532cd42535da9a097 (patch)
tree1d0458140274e7ad041ce0b0460cd91fec3c6dd0
parent6a4037ca05cdfd04e468115be1905eace8f6f57c (diff)
Address feedback around printf & exec
-rw-r--r--scripts/install-darwin-multi-user.sh2
-rw-r--r--scripts/install-nix-from-closure.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install-darwin-multi-user.sh b/scripts/install-darwin-multi-user.sh
index 3901ebe2d601..01a0e4ffb4e1 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 dd826c423953..9d395020e606 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