From 252ca7f7bd357fffe99d50b7408f0ebf1d31174b Mon Sep 17 00:00:00 2001 From: Aaron Son Date: Thu, 20 Feb 2020 14:59:49 -0800 Subject: [PATCH] publishrelease/install.sh: install -d /usr/local/bin if it does not exist. --- go/utils/publishrelease/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/go/utils/publishrelease/install.sh b/go/utils/publishrelease/install.sh index 13d01b1b2b..cc5f4688a5 100644 --- a/go/utils/publishrelease/install.sh +++ b/go/utils/publishrelease/install.sh @@ -98,6 +98,7 @@ install_binary_release() { curl -A "$CURL_USER_AGENT" -fsL "$URL" > "$FILE" tar zxf "$FILE" echo "Installing dolt, git-dolt and git-dolt-smudge to /usr/local/bin." + [ -d /usr/local/bin ] || install -o 0 -g 0 -d /usr/local/bin install -o 0 -g 0 dolt-$PLATFORM_TUPLE/bin/dolt /usr/local/bin install -o 0 -g 0 dolt-$PLATFORM_TUPLE/bin/git-dolt /usr/local/bin install -o 0 -g 0 dolt-$PLATFORM_TUPLE/bin/git-dolt-smudge /usr/local/bin