zx/install_unix
2019-12-23 10:50:05 +09:00

18 lines
489 B
Bash
Executable File

#! /bin/sh
if escript_path=$(command -v escript)
then
echo "Using escript found at $escript_path"
escript install.escript
if zx_link=$(command -v zx)
then
echo "zx found in \$PATH at $zx_link. Checking for upgrade."
echo "Running \`zx upgrade\`..."
zx upgrade
else
echo "zx is not yet in \$PATH. Once you have added zx's location to \$PATH run \`zx upgrade\`."
fi
else
echo "Could not locate an Erlang installation."
fi