diff --git a/install b/install index f188940..f5e74ef 100755 --- a/install +++ b/install @@ -6,6 +6,15 @@ bin="$HOME"/bin cd "$(dirname $(realpath $0))" chmod +x uninstall +if erl=$(command -v erl) + then + echo "Erlang found at $erl" + else + echo "Could not find an Erlang installation!" + echo "Erlang must be installed and available in \$PATH to proceed." + exit 95 +fi + if [ -d "$zomp_dir" ] then echo "Installation directory $zomp_dir already exists. Aborting." @@ -28,12 +37,17 @@ fi for rc in "$HOME/.profile" "$HOME/.bashrc" "$HOME/.bash_profile" do - if grep -q "PATH=\"\$HOME/bin:\$PATH\"" "$rc" + if [ -f "$rc" ] then - echo "Path adjustment found in $rc." + if grep -q "PATH=\"\$HOME/bin:\$PATH\"" "$rc" + then + echo "Path adjustment found in $rc." + else + echo "Path adjustment not found in $rc. Adding it." + echo "export PATH=\"\$HOME/bin:\$PATH\"" >> "$rc" + fi else - echo "Path adjustment not found in $rc. Adding it." - echo "export PATH=\"\$HOME/bin:\$PATH\"" >> "$rc" + echo "No $rc is present. Skipping." fi done diff --git a/zx-0.9.1.tar.gz b/zx-0.9.1.tar.gz new file mode 100644 index 0000000..4533853 Binary files /dev/null and b/zx-0.9.1.tar.gz differ diff --git a/zx-0.9.1.tar.xz b/zx-0.9.1.tar.xz new file mode 100644 index 0000000..e2b4d80 Binary files /dev/null and b/zx-0.9.1.tar.xz differ