From 5796020ef2679da5ea8282ee3a918eed3e099ec0 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Tue, 8 May 2018 07:40:02 +0200
Subject: [PATCH] Fix sed-delete command on homebrew install

---
 scripts/homebrew.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/homebrew.sh b/scripts/homebrew.sh
index 2e3936e..99c3691 100755
--- a/scripts/homebrew.sh
+++ b/scripts/homebrew.sh
@@ -6,5 +6,5 @@ su ${USERNAME} -c "ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Home
 su ${USERNAME} -c "brew install curl git"
 
 # changes path setup for all users, puts homebrew first
-sed -e ';^/usr/local;d' -i /etc/paths
+sed -e '/^\/usr\/local/d' -i .orig /etc/paths
 echo -e "/usr/local/bin\n/usr/local/sbin\n$(cat /etc/paths)" > /etc/paths
-- 
GitLab