From 7e85f832d44283411c61d717738491c9b76c3cc2 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 8 Aug 2018 09:52:43 -0500 Subject: [PATCH] no need for mktemp -d flag; shuffle here-doc names --- run.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/run.sh b/run.sh index 6f9b87f..2b8efe3 100755 --- a/run.sh +++ b/run.sh @@ -143,16 +143,16 @@ run_embark () { local run_script=$(< "$EMBARK_DOCKER_RUN") # do not alter indentation, tabs in lines below run_script=$(cat <<- RUN_SCRIPT - exec bash -${i_flag}s \$(tty) ${cmd[@]} << 'SCRIPT' + exec bash -${i_flag}s \$(tty) ${cmd[@]} << 'RUN' __tty=\$1 shift - td=\$(mktemp -d) - cat << 'RUN' > \$td/run_script + script=\$(mktemp) + cat << 'SCRIPT' > \$script $run_script - RUN - chmod +x \$td/run_script - exec \$td/run_script \$@ < \$__tty SCRIPT + chmod +x \$script + exec \$script \$@ < \$__tty + RUN RUN_SCRIPT ) # do not alter indentation, tabs in lines above