summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmakeself-header.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/makeself-header.sh b/makeself-header.sh
index e13eea4..10562df 100755
--- a/makeself-header.sh
+++ b/makeself-header.sh
@@ -556,6 +556,7 @@ copy)
cp "\$0" "\$SCRIPT_COPY"
chmod +x "\$SCRIPT_COPY"
cd "\$TMPROOT"
+ export USER_PWD="\$tmpdir"
exec "\$SCRIPT_COPY" --phase2 -- \$initargs
;;
phase2)