diff --git a/Config/Automation/backup.sh b/Config/Automation/backup.sh index cd5274d..8323b2b 100644 --- a/Config/Automation/backup.sh +++ b/Config/Automation/backup.sh @@ -105,18 +105,18 @@ EOF if [[ $local_pick == [Yy] ]];then echo "本地备份路径:${web_path}/年份/目录名称" else - sed -i '/mkdir.*/d' "${path}/backup.sh" + sed -i /mkdir.*/d "${path}/backup.sh" fi if [[ $baidu_pick == [Nn] ]];then - sed -i '/bypy.*/d' "${path}/backup.sh" - sed -i '/source.*/d' "${path}/backup.sh" + sed -i /bypy.*/d "${path}/backup.sh" + sed -i /source.*/d "${path}/backup.sh" else echo "百度网盘备份路径:我的应用数据/bypy/目录名称" fi if [[ $baidu_pick == [Nn] ]];then - sed -i '/.*aliyunpan.*/d' "/var/script/backup.sh" + sed -i /.*aliyunpan.*/d "/var/script/backup.sh" else echo "阿里云盘备份路径:网盘/目录名称/日期" fi \ No newline at end of file diff --git a/Menus/Install.sh b/Menus/Install.sh new file mode 100644 index 0000000..4f09657 --- /dev/null +++ b/Menus/Install.sh @@ -0,0 +1,19 @@ +#!/bin/bash +declare path +echo "请输入脚本的安装位置" +read -p "默认 /var/script:" path +if [[ -z $path ]];then + path="/var/script" +fi + +rm -rf "$path/linuxtoo" + +wget https://g.lsy22.com/lsy/LinuxTool/archive/master.tar.gz -O aa -P $path +tar -zxf "$path/aa" -C $path +rm "$path/aa" +chmod +x "$path/linuxtool/Run.sh" + +sed -i /alias tool.*/d "${HOME}/.bashrc" +echo "alias tool=$path/linuxtool/Run.sh" | cat >> "${HOME}/.bashrc" + +source "${HOME}/.bashrc" \ No newline at end of file