Skip to content

Commit

Permalink
Fixed bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
youmingdot committed May 28, 2017
1 parent 4aae30a commit f81db21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 0.14/letsencrypt-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function get_field
continue
fi

field=$(echo $line | awk -F= '{gsub(" |\t","",$1); print $1}')
value=$(echo $line | awk -F= '{gsub(" |\t","",$2); print $2}')
field=$(echo $line | awk -F= '{sub(/^[ |\t]*/,"",$1); sub(/[ |\t]*$/,"",$1); print $1}')
value=$(echo $line | awk -F= '{sub(/^[ |\t]*/,"",$2); sub(/[ |\t]*$/,"",$2); print $2}')

if [ "$field" = "$3" ]; then
echo $value
Expand Down
2 changes: 1 addition & 1 deletion 0.14/letsencrypt-obtain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ do
continue
fi

letsencrypt-auto certonly "$options" -n -q --agree-tos
letsencrypt-auto certonly -n -q --agree-tos "$options"

done
2 changes: 1 addition & 1 deletion 0.14/letsencrypt-renew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ do
continue
fi

letsencrypt-auto certonly "$options" -n -q --agree-tos
letsencrypt-auto certonly -n -q --agree-tos "$options"

done

0 comments on commit f81db21

Please sign in to comment.