cfgfoo

git clone https://orangeshoelaces.net/git/cfgfoo.git

230dea45691da1a37444c6351daed6874f4ac5ca

Author: Vasilii Kolobkov on 12/19/2018

Committer: Vasilii Kolobkov on 12/19/2018

Rename addfln to appendfln

Stats

aliases              |  2 +-
steps/edit/addfln    | 14 --------
steps/edit/appendfln | 14 ++++++++
3 files changed, 15 insertions(+), 15 deletions(-)

Patch

diff --git a/aliases b/aliases
index ee3a59b..1134afa 100644
--- a/aliases
+++ b/aliases
@@ -4,7 +4,7 @@ alias cfgfoo="${CFGFOOPATH}/cfgfoo"
 alias acme_reqcrt1="cfgfoo ${CFGFOOPATH}/steps/acme-client/reqcrt1 "
 alias acme_schedcrtrefresh="cfgfoo ${CFGFOOPATH}/steps/acme-client/schedcrtrefresh "
 
-alias addfln="cfgfoo ${CFGFOOPATH}/steps/edit/addfln "
+alias appendfln="cfgfoo ${CFGFOOPATH}/steps/edit/addfln "
 
 alias mkdir="cfgfoo ${CFGFOOPATH}/steps/fs/mkdir "
 alias install="cfgfoo ${CFGFOOPATH}/steps/fs/install -s "
diff --git a/steps/edit/addfln b/steps/edit/addfln
deleted file mode 100644
index 9b7dc09..0000000
--- a/steps/edit/addfln
+++ /dev/null
@@ -1,14 +0,0 @@
-step_taken() {
-	[ -f "$1" ] &&
-	grep -Fxq "$2" "$1"
-}
-
-take_step() {
-	# some exes like to concern themselves with term caps 
-	# while -s switch is on. play dumb even if for one ln
-	{
-		printf '$a\n'
-		printf '%s\n.\n' "$2"
-		printf 'w\nq\n'
-	} | TERM=dumb ex -s "$1"
-}
diff --git a/steps/edit/appendfln b/steps/edit/appendfln
new file mode 100644
index 0000000..9b7dc09
--- /dev/null
+++ b/steps/edit/appendfln
@@ -0,0 +1,14 @@
+step_taken() {
+	[ -f "$1" ] &&
+	grep -Fxq "$2" "$1"
+}
+
+take_step() {
+	# some exes like to concern themselves with term caps 
+	# while -s switch is on. play dumb even if for one ln
+	{
+		printf '$a\n'
+		printf '%s\n.\n' "$2"
+		printf 'w\nq\n'
+	} | TERM=dumb ex -s "$1"
+}