mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Typo ogod
This commit is contained in:
parent
93cc413f4a
commit
6048d1b0b3
1 changed files with 3 additions and 3 deletions
|
@ -748,13 +748,13 @@ ynh_secure_remove() {
|
||||||
# (Deprecated, use --output-as json and jq instead)
|
# (Deprecated, use --output-as json and jq instead)
|
||||||
ynh_get_plain_key() {
|
ynh_get_plain_key() {
|
||||||
local prefix="#"
|
local prefix="#"
|
||||||
local founded=0
|
local found=0
|
||||||
# We call this key_ so that it's not caught as
|
# We call this key_ so that it's not caught as
|
||||||
# an info to be redacted by the core
|
# an info to be redacted by the core
|
||||||
local key_=$1
|
local key_=$1
|
||||||
shift
|
shift
|
||||||
while read line; do
|
while read line; do
|
||||||
if [[ "$founded" == "1" ]]; then
|
if [[ "$found" == "1" ]]; then
|
||||||
[[ "$line" =~ ^${prefix}[^#] ]] && return
|
[[ "$line" =~ ^${prefix}[^#] ]] && return
|
||||||
echo $line
|
echo $line
|
||||||
elif [[ "$line" =~ ^${prefix}${key_}$ ]]; then
|
elif [[ "$line" =~ ^${prefix}${key_}$ ]]; then
|
||||||
|
@ -763,7 +763,7 @@ ynh_get_plain_key() {
|
||||||
key_=$1
|
key_=$1
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
founded=1
|
found=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue