From 8877f608cb101f13c012225ee8177e31ccb9593d Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 2 Mar 2020 23:19:05 +0800 Subject: update --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 0601c92..4ec2586 100644 --- a/tools/install.sh +++ b/tools/install.sh @@ -16,7 +16,7 @@ if [ ! -d $SETTING_DIR ]; then } fi -sed -i "\^# $REPO^, /^$/ d" $RCFILE +sed -i "/^$/ N; \^# $REPO^, /^$/ d" $RCFILE echo " # $REPO -- cgit v1.2.3-70-g09d2