Browse Source

All ShellCheck Alarms fixed

pull/4153/head
M.A.Sarbanha 3 years ago
committed by GitHub
parent
commit
d0d4926e2c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dnsapi/dns_arvancdn.sh

4
dnsapi/dns_arvancdn.sh

@ -102,14 +102,14 @@ _get_root(){
break 2 break 2
fi fi
done done
_zone=$(echo "${_zone}" | sed 's/^[^.]*\.\?//')
_zone=$(sed 's/^[^.]*\.\?//' <(echo "${_zone}"))
done done
if [ -z "${_zone}" ]; then if [ -z "${_zone}" ]; then
_debug2 "_get_root(): Zone not found on provider" _debug2 "_get_root(): Zone not found on provider"
exit 1 exit 1
fi fi
_marked_zone=$(echo "${_fulldomain}" | sed "s/^\(.*\)\.\(${_zone}\)$/\1..\2/")
_marked_zone=$(sed "s/^\(.*\)\.\(${_zone}\)$/\1..\2/" <(echo "${_fulldomain}"))
echo "${_marked_zone}" echo "${_marked_zone}"
} }

Loading…
Cancel
Save