Commit graph

29 commits

Author SHA1 Message Date
Alexandre Aubin
5de9e4fe6a Yolorework the repo dir structure 2021-11-10 17:56:02 +01:00
Alexandre Aubin
93cc413f4a helpers: lint/reformat with shfmt -bn -i 4 -w $FILE 2021-10-06 16:01:53 +02:00
Alexandre Aubin
2181bc1bab log: Improve filtering of boring/irrelevant lines 2021-09-16 20:34:24 +02:00
d7fc5d31ec helper doc fixes : string 2021-03-03 11:17:59 +01:00
Maniack Crudelis
3b653994c7 Standardize helper comments 2020-04-20 20:58:17 +02:00
Maniack Crudelis
3442ab5b80 Add internal flags 2020-04-20 15:21:11 +02:00
Maniack Crudelis
b0398ae6dc Use long arguments instead of short ones 2020-04-20 15:20:31 +02:00
Maniack Crudelis
80964a1312 Standardize tabulations 2020-04-19 20:03:55 +02:00
Maniack Crudelis
1dd4a73e17 Replace declare -Ar by local A for args_array 2020-04-19 19:10:39 +02:00
Alexandre Aubin
97e5d3b992 Remove those random sudo which are useless yet triggers LDAP warning when LDAP is in bad state 2019-11-28 00:10:40 +01:00
Alexandre Aubin
3c22feb0cb Move string normalization helpers to 'string' 2019-04-25 20:19:04 +02:00
Maniack Crudelis
873bf4ae37 Add min version for all helpers 2019-02-25 18:44:21 +01:00
Maniack Crudelis
976f160afb Fix getopts and its legacy mode 2019-01-04 17:11:49 +01:00
Maniack Crudelis
4bac17a162
Merge branch 'stretch-unstable' into use_getops 2018-12-29 19:07:25 +01:00
Maniack Crudelis
d3a501aa41
Use getopts helpers in string 2018-12-29 18:50:54 +01:00
Maniack Crudelis
c057d38fe1
Use getopts for string's helpers 2018-12-29 17:58:22 +01:00
Maniack Crudelis
1c628c8d73
[enh] Use more blocks for dd in ynh_string_random
200 are not enough if you try to generate a 64 characters string.
2018-11-04 18:54:59 +01:00
Laurent Peuch
e9c87da028
[fix] previous patch mistakely remove variable name 2018-01-15 22:59:20 +01:00
JimboJoe
a62edfd76e
Merge branch 'unstable' into helpers_local_variables 2018-01-10 08:22:33 +01:00
Maniack Crudelis
542528ab05 Fix broken ynh_replace_string (#394)
* Fix broken ynh_replace_string
* Replace name for ynh_replace_special_string
2017-12-21 19:19:33 +01:00
Maniack Crudelis
3a3ec7d9b5 [fix/enh] Use local variables 2017-12-17 20:26:52 +01:00
Maniack Crudelis
0086c8c16a [fix] match_string: unbound variable (#379)
* [fix] match_string: unbound variable
* Define local variables at beginning of function
2017-10-07 15:06:00 +02:00
Laurent Peuch
ff4b08ed65 Merge pull request #354 from YunoHost/update_ynh_replace_string
[enh] Escape some special character in ynh_replace_string
2017-10-06 15:03:40 +02:00
Maniack Crudelis
e3a4b307f7 Fix double backslash in case of delimiter used 2017-10-03 22:11:24 +02:00
Jimmy Monin
f4955341bb Complete ynh_replace_string helper comments to mention the possible use of regexp 2017-09-05 21:09:24 +02:00
Maniack Crudelis
bb2424e9b8 [enh] Escape some special character in ynh_replace_string 2017-08-23 17:25:16 +02:00
Maniack Crudelis
c31e4c5b0d New helper ynh_replace_string (#280)
* New helper ynh_substitute_char
Sed abstraction, and a way to use something other than sed.
I added also an escape of the delimiter used by sed, to prevent a fail in this case.
* Renaming to ynh_replace_string
* Renaming variable for clarity
2017-04-02 23:52:11 +02:00
ljf (zamentur)
0d6cf499a0 [fix] Bracket in passwd from ynh_string_random
With bracket we get string like "3KFEc[xm4[udnZ6pDJ8LvP0n"
Without "El0nMO3thacDwrjeRzgKnb30"
2016-12-09 07:34:31 +01:00
Julien Malik
5b7e16384e [enh] move /usr/share/yunohost/apps/helpers to /usr/share/yunohost/helpers since it became of more general use 2016-03-12 00:12:59 +01:00
Renamed from data/apps/helpers.d/string (Browse further)