#!/bin/sh

#  install_cli.sh
#  DayOne
#
#  Created by Joshua Orr on 10/3/16.
#  Copyright © 2016 Bloom Built, LLC. All rights reserved.

# Get scripts current directory.
ourDir=$(dirname "$0")

# This folder apparently doesn't exist with a base system?
# Make sure it exists
mkdir -p /usr/local/bin

# Install
gzcat "$ourDir/dayone2" > /usr/local/bin/dayone2

# Make it executable
chmod a+x /usr/local/bin/dayone2
