We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8531e9 commit d388a52Copy full SHA for d388a52
install.sh
@@ -37,7 +37,6 @@ install_init_script () {
37
sed -i "${line}d" $user_bashrc
38
fi
39
40
- echo -n >> $user_bashrc
41
echo "$bashrc_cmd" >> $user_bashrc
42
}
43
unisntall.sh
@@ -1,13 +1,9 @@
1
#!/bin/bash
2
3
-local_path=`pwd`/$(dirname $0)
4
user_bashrc=$HOME/.bashrc
5
6
-bashrc_cmd="source $local_path/rd_init"
7
-if grep $bashrc_cmd $user_bashrc 1>/dev/null 2>/dev/null; then
8
- echo "Deleting init bashrc......"
9
- line=`grep -n "$bashrc_cmd" $user_bashrc|cut -d: -f1`
10
- sed -i "${line}d" $user_bashrc
11
-fi
+echo "Deleting init bashrc......"
+sed -i "/rd_init/d" $user_bashrc
+sed -i "/rd_server/d" $user_bashrc
12
13
echo "Uninstall Success"
0 commit comments