bin/: Fix preamble to handle invocation through a symlink.
[distorted-letsencrypt] / bin / make-cert
index b6a86df..19808c6 100755 (executable)
@@ -1,7 +1,8 @@
 #! /bin/sh
 set -e
 usage=" TAG"
-. "${0%/*}/../config.sh"
+prog=$(readlink -e "$0")
+. "${prog%/*}/../config.sh"
 . "$home/lib/lib.sh"
 
 run_as_user "$@"