From f3117edfa0acee96f9ab80975a0607fe01136504 Mon Sep 17 00:00:00 2001 From: wweir Date: Tue, 19 Feb 2019 13:04:36 +0800 Subject: [PATCH] For macOS without brew --- deploy/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy/install b/deploy/install index 5c6b7b6..ea99093 100755 --- a/deploy/install +++ b/deploy/install @@ -20,15 +20,16 @@ case "$(uname -s)" in echo curl -SLf https://github.com/wweir/sower/releases/download/$VERSION/sower_darwin_amd64.tar.gz | tar xzv - - mv sower /usr/local/bin/ + sudo mkdir -p /usr/local/bin/ + sudo mv sower /usr/local/bin/ if [[ -r /usr/local/etc/sower.toml ]]; then echo The config file already exists, keep the original file else sed -i~ "s/# server_addr=\"remote-server/server_addr=\"$ADDRESS/" sower.toml sed -i~ "s/# clear_dns_cache/clear_dns_cache/" sower.toml - mv sower.toml /usr/local/etc/ + sudo mkdir -p /usr/local/etc/ + sudo mv sower.toml /usr/local/etc/ fi echo