1 Star 1 Fork 0

N维网络/ggApp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup_linux.sh 677 Bytes
一键复制 编辑 原始数据 按行查看 历史
linguangliang 提交于 2019-06-19 19:35 +08:00 . reconstruction: version 0.2
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
GGAPP_ROOT="$DIR"
echo ""
echo "GGAPP_ROOT = \"$GGAPP_ROOT\""
echo ""
# set .bash_profile or .profile
ENVSTR="export GGAPP_ROOT=$GGAPP_ROOT"
if [ "$SHELL" == "/bin/bash" ]; then
PROFILE_NAME=~/.bash_profile
elif [ "$SHELL" == "/bin/sh" ]; then
PROFILE_NAME=~/.profile
elif [ "$SHELL" == "/bin/zsh" ]; then
PROFILE_NAME=~/.zshrc
elif [ "$SHELL" == "/bin/csh" ]; then
PROFILE_NAME=~/.cshrc
ENVSTR="set GGAPP_ROOT=$GGAPP_ROOT"
else
echo "Error, unknow shell!"
exit -1
fi
sed -i '/export GGAPP_ROOT=/d' $PROFILE_NAME
echo $ENVSTR >> $PROFILE_NAME
source $PROFILE_NAME
echo "Setup evn in $PROFILE_NAME"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Wanting/ggApp.git
git@gitee.com:Wanting/ggApp.git
Wanting
ggApp
ggApp
master

搜索帮助