Update bin/yunopaste

This commit is contained in:
Alexandre Aubin 2023-01-04 18:58:42 +01:00 committed by GitHub
parent dee9dcb480
commit 60313e9318
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ paste_data() {
[[ -z "$json" ]] && _die "Unable to post the data to the server."
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)
[[ -z "$key" ]] && _die "Unable to parse the server response."