#!/bin/bash

echo "Installing stddev..."

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

mkdir -p ~/.local/bin
cp "$SCRIPT_DIR/stddev.jar" ~/.local/bin/

echo '#!/bin/bash' > ~/.local/bin/stddev
echo 'java -jar ~/.local/bin/stddev.jar "$@"' >> ~/.local/bin/stddev

chmod +x ~/.local/bin/stddev

echo "Done. Run with: stddev"
