view setup.sh @ 18:96cc73ae2904

Make it more fail-safe.
author David Barts <n5jrn@me.com>
date Tue, 21 Jan 2020 16:39:02 -0800
parents be282c48010a
children 19d9da731c43
line wrap: on
line source

#!/bin/bash

export JRE_HOME="$(/usr/libexec/java_home)"
export KOTLIN_HOME="/usr/local/Cellar/kotlin/1.3.61"

export ANT_HOME="$HOME/java/apache-ant-1.10.1"
if [[ "$PATH" != *$ANT_HOME/bin* ]]
then
    export PATH="$ANT_HOME/bin:$PATH"
fi