summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2018-03-05 09:25:42 -0700
committerAaron Ball <nullspoon@oper.io>2018-03-05 09:25:42 -0700
commit5f740ab6e8c836964497a6c0231e47ad28a7bc53 (patch)
treebfe04c742b9ae5d9c02edf7475b3882682038a03
parent4615b7bb647c8b1cde5cbe7a11060b82c9b61e83 (diff)
downloadpkgself-5f740ab6e8c836964497a6c0231e47ad28a7bc53.tar.gz
pkgself-5f740ab6e8c836964497a6c0231e47ad28a7bc53.tar.xz
install-header:Added SELFDIR variable
This variable holds the absolute path to the parent directory that contains the installer.
-rwxr-xr-xinstall-header.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/install-header.sh b/install-header.sh
index 0c2fc6d..069a8c9 100755
--- a/install-header.sh
+++ b/install-header.sh
@@ -49,7 +49,8 @@ extract_payload() {
main() {
- SELF="$(cd $(dirname ${0}) && pwd)/$(basename ${0})"
+ SELFDIR="$(cd $(dirname ${0}) && pwd)"
+ SELF="${SELFDIR}/$(basename ${0})"
TMP="$(mktemp -d /tmp/installer-XXXXXXX)"
extract_header

Generated by cgit