install
#!/bin/bash
if [[ -n $1 ]]; then
export psacsrc="${1}/target/PeyangSuperbAntiCheat-0.2.1a.jar"
else
read -rp "Repository Root:" reporoot
export psacsrc="${reporoot}/target/PeyangSuperbAntiCheat-0.2.1a.jar"
fi
if [[ -n $2 ]]; then
export psacdist=${2}
else
read -rp "Plugin install dir (directory create automatically):" ans
export psacdist="${ans}/PSAC.jar"
fi
echo "${psacsrc} -> ${psacdist}"
if [[ $(uname) == Darwin ]]; then
install -m755 "$psacsrc" "$psacdist" && echo "SUCCESS: PeyangSuperbAntiCheat installed successfly."
else
install -Dm755 "$psacsrc" "$psacdist" && echo "SUCCESS: PeyangSuperbAntiCheat installed successfly."
fi