mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-09 14:42:47 +02:00
don't assume we are in the same directory as the script
This commit is contained in:
+2
-2
@@ -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() {
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user