centos7 shell脚本一键安装maven
最近装什么都希望自己有个一键脚本来搞定,今天看到以前的maven还没有写一键安装脚本,所以今天把他补起.
系统:centos 7(64位)
cat /root/soft_shell/auto_install_maven.sh
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, ...