diff options
author | bmw <bmw@users.noreply.github.com> | 2015-12-23 18:22:02 +0300 |
---|---|---|
committer | bmw <bmw@users.noreply.github.com> | 2015-12-23 18:22:02 +0300 |
commit | fe29245b5eb3d1afb1ebe6340250992896c8a0bd (patch) | |
tree | 585e8775ef1145dcdaa20e7f3efb534a34e9be01 /letsencrypt-auto | |
parent | fca05bd716c00b4a24575b66932f740b5b07289a (diff) | |
parent | dfd666fd3d8bf56aacc5d6909cc1d0f7f2b008e2 (diff) |
Merge pull request #1932 from P1sec/master
Root prompt explanation + minor typos
Diffstat (limited to 'letsencrypt-auto')
-rwxr-xr-x | letsencrypt-auto | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/letsencrypt-auto b/letsencrypt-auto index 68e121cf2..20465dbb1 100755 --- a/letsencrypt-auto +++ b/letsencrypt-auto @@ -47,13 +47,13 @@ if test "`id -u`" -ne "0" ; then args="" # This `while` loop iterates over all parameters given to this function. # For each parameter, all `'` will be replace by `'"'"'`, and the escaped string - # will be wrap in a pair of `'`, then append to `$args` string + # will be wrapped in a pair of `'`, then appended to `$args` string # For example, `echo "It's only 1\$\!"` will be escaped to: # 'echo' 'It'"'"'s only 1$!' # │ │└┼┘│ # │ │ │ └── `'s only 1$!'` the literal string # │ │ └── `\"'\"` is a single quote (as a string) - # │ └── `'It'`, to be concatenated with the strings followed it + # │ └── `'It'`, to be concatenated with the strings following it # └── `echo` wrapped in a pair of `'`, it's totally fine for the shell command itself while [ $# -ne 0 ]; do args="$args'$(printf "%s" "$1" | sed -e "s/'/'\"'\"'/g")' " @@ -200,5 +200,5 @@ fi # Explain what's about to happen, for the benefit of those getting sudo # password prompts... -echo "Running with virtualenv:" $SUDO $VENV_BIN/letsencrypt "$@" +echo "Requesting root privileges to run with virtualenv:" $SUDO $VENV_BIN/letsencrypt "$@" $SUDO $VENV_BIN/letsencrypt "$@" |