diff options
author | Stephane Peter <megastep@megastep.org> | 2021-12-08 19:28:45 -0800 |
---|---|---|
committer | Stephane Peter <megastep@megastep.org> | 2021-12-08 19:28:45 -0800 |
commit | 5809be74e15eacf38f0e50d07a0612f4ca77c78a (patch) | |
tree | df1493ac0604b42e1a6e9172257e26c0e89af75e | |
parent | 6c572d3b9a03c239b6cd29b6ab51ba541378aa39 (diff) | |
download | makeself-5809be74e15eacf38f0e50d07a0612f4ca77c78a.tar.gz |
Update $USER_PWD when using --copy (fixes #262)
-rwxr-xr-x | makeself-header.sh | 1 |
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) |