post: change directory if saved

This commit is contained in:
Dawid Dziurla 2020-05-14 20:16:43 +02:00 committed by GitHub
parent 83c93acd55
commit 89ee60634c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,10 +8,14 @@ function rm(file) {
async function main() {
try {
const directory = core.getState("directory")
const keyFile = core.getState("keyFile")
const inventoryFile = core.getState("inventoryFile")
const vaultPasswordFile = core.getState("vaultPasswordFile")
if (directory)
process.chdir(directory)
if (keyFile)
rm(keyFile)