Unverified Commit d43227ed authored by Arthur Wiebe's avatar Arthur Wiebe
Browse files

fix shellcheck issues

parent 719b6904
...@@ -153,8 +153,8 @@ _get_root() { ...@@ -153,8 +153,8 @@ _get_root() {
if _contains "$response" '"success":true'; then if _contains "$response" '"success":true'; then
_domain=$(printf "%s\n" "$response" | _egrep_o "\"name\":\"[^\"]*\"" | cut -d : -f 2 | tr -d \" | head -n 1) _domain=$(printf "%s\n" "$response" | _egrep_o "\"name\":\"[^\"]*\"" | cut -d : -f 2 | tr -d \" | head -n 1)
if [ "$_domain" ]; then if [ "$_domain" ]; then
_cutlength=$(expr ${#domain} - ${#_domain} - 1) _cutlength=$((${#domain} - ${#_domain} - 1))
_sub_domain=$(printf "%s" "$domain" | cut -c 1-$_cutlength) _sub_domain=$(printf "%s" "$domain" | cut -c "1-$_cutlength")
_domain_id=$CF_Zone_ID _domain_id=$CF_Zone_ID
return 0 return 0
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment