mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix yunopaste (#1558)
* Update yunopaste * Update bin/yunopaste Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
f124747fc6
commit
3d6a1876d4
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ paste_data() {
|
||||||
[[ -z "$json" ]] && _die "Unable to post the data to the server."
|
[[ -z "$json" ]] && _die "Unable to post the data to the server."
|
||||||
|
|
||||||
key=$(echo "$json" \
|
key=$(echo "$json" \
|
||||||
| python -c 'import json,sys;o=json.load(sys.stdin);print o["key"]' \
|
| python3 -c 'import json,sys;o=json.load(sys.stdin);print(o["key"])' \
|
||||||
2>/dev/null)
|
2>/dev/null)
|
||||||
[[ -z "$key" ]] && _die "Unable to parse the server response."
|
[[ -z "$key" ]] && _die "Unable to parse the server response."
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue