We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543f099 commit b185c92Copy full SHA for b185c92
hack/demo/generate-asciidemo.sh
@@ -83,7 +83,10 @@ done
83
84
curl https://raw.githubusercontent.com/zechris/asciinema-rec_script/main/bin/asciinema-rec_script -o ${WKDIR}/asciinema-rec_script
85
chmod +x ${WKDIR}/asciinema-rec_script
86
-screencast=${WKDIR}/${DEMO_NAME}.cast ${WKDIR}/asciinema-rec_script ${SCRIPTPATH}/${DEMO_SCRIPT}
+# Dynamically build clean env and eval the call
87
+ENV_EXPORTS=$(env | awk -F= '{ if ($2 ~ /^[^"]*$/) print "export " $1"=\"" $2 "\"" }')
88
+eval "${ENV_EXPORTS}
89
+screencast=${WKDIR}/${DEMO_NAME}.cast ${WKDIR}/asciinema-rec_script ${SCRIPTPATH}/${DEMO_SCRIPT}"
90
91
if [ -n "${UPLOAD-}" ]; then
92
asciinema upload ${WKDIR}/${DEMO_NAME}.cast
0 commit comments