mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
Create temp directories.
This commit is contained in:
parent
2a0cac20f6
commit
17de854fce
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@ TMP_FOLDER=$(try mktemp -d) || exit 1
|
|||
trap 'exit 1' HUP INT TERM
|
||||
trap 'log "cleaning up..."; try cd / && try rm -rf "${TMP_FOLDER}"' EXIT
|
||||
|
||||
try mkdir "${TMP_FOLDER}"/tests
|
||||
try mkdir "${TMP_FOLDER}"/node_modules
|
||||
|
||||
log "create a clean environment in $TMP_FOLDER..."
|
||||
try git archive --format=tar HEAD | (try cd "${TMP_FOLDER}" && ls -lisa && try tar xf -) \
|
||||
|| fatal "failed to copy etherpad to temporary folder"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue