mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
fix(scripts): set a trap to delete temp file
This commit is contained in:
parent
0843352514
commit
4db59db7a1
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue