Bad idea, also search for the lib in a few places

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-08-31 06:12:02 +03:00
parent c440d465c2
commit 4fd60b4dde
3 changed files with 9 additions and 8 deletions

5
le
View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
subcommand=$1; shift
"le-$subcommand" "$@"

View File

@ -1,6 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source lib/util LPATH=( /usr/lib/le "$HOME/.local/lib/le" "lib/le" "lib" )
for l in "${LPATH[@]}"; do
[[ -f "$l/util" ]] && source "$l/util"
done
gen_san_string() { gen_san_string() {
declare d declare d

View File

@ -1,6 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source lib/util LPATH=( /usr/lib/le "$HOME/.local/lib/le" "lib/le" "lib" )
for l in "${LPATH[@]}"; do
[[ -f "$l/util" ]] && source "$l/util"
done
usage() { usage() {
while read -r line; do printf '%s\n' "$line"; done <<- EOF while read -r line; do printf '%s\n' "$line"; done <<- EOF
@ -69,7 +72,7 @@ main() {
le_args+=( "$d" ) le_args+=( "$d" )
done done
le issue "${le_args[@]}" le-issue "${le_args[@]}"
if (( $? )); then if (( $? )); then
> "$cfg_dir/domains/$certname/renew.fail" > "$cfg_dir/domains/$certname/renew.fail"