Commit 8d009505 authored by Lukas Schauer's avatar Lukas Schauer

don't assume we are in the same directory as the script

parent 0a859a19
...@@ -443,7 +443,7 @@ command_help() { ...@@ -443,7 +443,7 @@ command_help() {
echo echo
( (
echo "Commands:" echo "Commands:"
grep -e '# Usage:' -e '# Description:' -e '^command_.*()\s*{' letsencrypt.sh | while read -r usage; read -r description; read -r command; do grep -e '# Usage:' -e '# Description:' -e '^command_.*()\s*{' "${0}" | while read -r usage; read -r description; read -r command; do
if [[ ! "${usage}" =~ Usage ]]; then if [[ ! "${usage}" =~ Usage ]]; then
echo "Error generating help text." echo "Error generating help text."
exit 1 exit 1
...@@ -458,7 +458,7 @@ command_help() { ...@@ -458,7 +458,7 @@ command_help() {
done done
echo "---" echo "---"
echo "Parameters:" echo "Parameters:"
grep -E -e '^\s*# PARAM_Usage:' -e '^\s*# PARAM_Description:' letsencrypt.sh | while read -r usage; read -r description; do grep -E -e '^\s*# PARAM_Usage:' -e '^\s*# PARAM_Description:' "${0}" | while read -r usage; read -r description; do
if [[ ! "${usage}" =~ Usage ]]; then if [[ ! "${usage}" =~ Usage ]]; then
echo "Error generating help text." echo "Error generating help text."
exit 1 exit 1
......
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