Verified Commit 173fa6d7 authored by Aral Balkan's avatar Aral Balkan
Browse files

Fixes 128: Install script fails on default macOS

(due to lack of /usr/local/bin directory. This patch ensures that directory exists before trying to move the Site.js binary into it.)
parent b7bbeebb
......@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## Unreleased
## [12.7.1] - 2019-10-13
### Fixed
- Fixed [install script failure on macOS](https://source.ind.ie/site.js/app/issues/128) if person didn’t already have a /usr/local/bin directory. (On macOS, this directory does not exist by default.)
### Changed
- Updated the chat example to match the one in the upcoming [Build a simple chat app with Site.js tutorial](https://localhost/2019/10/10/build-a-simple-chat-app-with-site.js).
......
{
"name": "@small-tech/site.js",
"version": "12.7.0",
"version": "12.7.1",
"description": "Develop, test, and deploy your secure static or dynamic personal web site with zero configuration.",
"main": "index.js",
"bin": "bin/site.js",
......
......@@ -45,6 +45,11 @@ fi
echo " 📦 Installing…"
gzip -d 12.7.0.tar.gz
tar -xvf 12.7.0.tar > /dev/null 2>&1
# Ensure that the /usr/local/bin directory exists (it does not by default on macOS)
sudo mkdir -p /usr/local/bin/
# Move the site binary there.
sudo mv site /usr/local/bin/
cleanUp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment