File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,7 @@ Example `entrypoint.sh`:
54
54
``` bash
55
55
#! /bin/bash
56
56
set -euxo pipefail
57
- # shellcheck disable=SC2046
58
- test -f .env && export $( xargs < .env)
57
+ source .env
59
58
60
59
# ...
61
60
```
Original file line number Diff line number Diff line change @@ -28,9 +28,7 @@ cp -R "${ARCHIVE_DIR}" .
28
28
cp " ${MAKESELF_BIN} " makeself.sh
29
29
cp " ${MAKESELF_HEADER_BIN} " makeself-header.sh
30
30
chmod +x " $( basename " ${ARCHIVE_DIR} " ) /${STARTUP_SCRIPT} "
31
- if [ -n " ${DOTENV} " ]; then
32
- echo " ${DOTENV} " > " $( basename " ${ARCHIVE_DIR} " ) /.env"
33
- fi
31
+ echo " ${DOTENV} " > " $( basename " ${ARCHIVE_DIR} " ) /.env"
34
32
35
33
RUN=( ./makeself.sh --nomd5 --nocrc --tar-extra ' --mtime=2019-01-01' --packaging-date ' 1970-01-01T00:00:00Z' --base64 ${NEEDROOT} " $( basename " ${ARCHIVE_DIR} " ) " " ${FILE_NAME} " " ${LABEL} " " ./${STARTUP_SCRIPT} " )
36
34
echo " ${RUN[@]} " > run.log
You can’t perform that action at this time.
0 commit comments