[sysadmin-bin] Handle dashes properly
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Handle dashes properly
- Date: Thu, 29 Mar 2018 15:36:50 +0000 (UTC)
commit 9fea529eb8ebbd056d75277b4e8469735b7541a9
Author: Andrea Veri <averi redhat com>
Date: Thu Mar 29 17:36:38 2018 +0200
Handle dashes properly
letsencrypt/letsencrypt_dns_del.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/letsencrypt/letsencrypt_dns_del.sh b/letsencrypt/letsencrypt_dns_del.sh
index fdcf003..5f424cd 100644
--- a/letsencrypt/letsencrypt_dns_del.sh
+++ b/letsencrypt/letsencrypt_dns_del.sh
@@ -18,7 +18,7 @@ if [ -d /tmp/dns ]; then
done
ln=`grep -n "_acme-challenge.${domain}." master/$extracted_domain \
- | grep "${token}" | cut -d: -f 1`
+ | grep "${token//-/\\-}" | cut -d: -f 1`
if [[ -n "${ln}" ]]; then
sed -i "${ln}d" "master/${extracted_domain}"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]