mirror of
https://github.com/msfjarvis/compose-lobsters.git
synced 2024-06-03 04:18:58 +05:30
fix(scripts): set a trap to delete temp file
This commit is contained in:
parent
0843352514
commit
4db59db7a1
|
@ -5,6 +5,8 @@ set -euo pipefail
|
|||
ENCRYPT_KEY="${1}"
|
||||
TEMP_KEY="$(mktemp)"
|
||||
|
||||
trap "rm -rf ${TEMP_KEY} 2>/dev/null" INT TERM EXIT
|
||||
|
||||
echo "${ENCRYPT_KEY:?}" > "${TEMP_KEY}"
|
||||
|
||||
function decrypt() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user