summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-03-18 12:23:42 +0100
committertv <tv@shackspace.de>2015-05-19 23:10:57 +0200
commit6495611cd4977ac89388053ffb4c31cf4794959e (patch)
tree23a8dd5d661d11d8090764c8f9b73a9a8080a58e
parent4df17e9962811edd70456d679e4dbc5c9713c5e6 (diff)
run: ": " -> ":" per grep(1)
-rwxr-xr-xrun10
1 files changed, 5 insertions, 5 deletions
diff --git a/run b/run
index 3440088a..0883ecce 100755
--- a/run
+++ b/run
@@ -78,23 +78,23 @@ filter_secrets() {
sed -n 's:^\(.*/\)\?\(secrets/.*\):'"${PWD//:/\\:}"'/\2:p'
}
-# import_statements : lines (path ": " string) |> lines (path ": " relpath)
+# import_statements : lines (path ":" string) |> lines (path ":" relpath)
import_statements() {
sed -n '
- s@^\([^:]\+: \)\('"$(bre_invert_word import)"'\)*\<import\s\+@\1@
+ s@^\([^:]\+:\)\('"$(bre_invert_word import)"'\)*\<import\s\+@\1@
t1;d
- :1; s@^\([^:]\+: \)\(\.*/\S*\)@\1\2\n@
+ :1; s@^\([^:]\+:\)\(\.*/\S*\)@\1\2\n@
t2;d
:2; P;D
'
}
-# slash_path_relpath : lines (path ": " relpath) |> lines path
+# slash_path_relpath : lines (path ":" relpath) |> lines path
#
# Example: "/foo/bar: baz" => "/foo/baz"
#
slash_path_relpath() {
- sed -n 's@/[^/]\+: @/@p'
+ sed -n 's@/[^/]\+:@/@p'
}
# undot_paths : lines path |> lines path