summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Peter <megastep@megastep.org>2021-12-08 19:28:45 -0800
committerStephane Peter <megastep@megastep.org>2021-12-08 19:28:45 -0800
commit5809be74e15eacf38f0e50d07a0612f4ca77c78a (patch)
treedf1493ac0604b42e1a6e9172257e26c0e89af75e
parent6c572d3b9a03c239b6cd29b6ab51ba541378aa39 (diff)
downloadmakeself-5809be74e15eacf38f0e50d07a0612f4ca77c78a.tar.gz
Update $USER_PWD when using --copy (fixes #262)
-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)