#!/usr/bin/env bash HERE=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) source ${HERE}/../ovh-api-lib.sh || exit 1 OvhRequestApi /me if [ "${OVHAPI_HTTP_STATUS}" != "200" ]; then echo "profile error:" echo "${OVHAPI_HTTP_RESPONSE}" exit fi if [ -z "${OVH_DOMAIN}" ]; then echo -e "please set one of your domains with :\nOVH_DOMAIN=your_domain.tld" echo -e "choose in :\n" OvhRequestApi "/domain" getJSONValues exit 1 fi txt_field="ovhapilib" txt_value="test1: text with space and quo't'es" # avoid backslashes :-) : CUSTOMDATA=$(cat <