mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Only log update binary env path if it was updated
This commit is contained in:
parent
6afb8de3dd
commit
6f6395bad7
@ -36,8 +36,10 @@ class BinaryManager {
|
|||||||
const binaryPath = await this.findBinary(binary.name, binary.envVariable)
|
const binaryPath = await this.findBinary(binary.name, binary.envVariable)
|
||||||
if (binaryPath) {
|
if (binaryPath) {
|
||||||
Logger.info(`[BinaryManager] Found ${binary.name} at ${binaryPath}`)
|
Logger.info(`[BinaryManager] Found ${binary.name} at ${binaryPath}`)
|
||||||
|
if (process.env[binary.envVariable] !== binaryPath) {
|
||||||
Logger.info(`[BinaryManager] Updating process.env.${binary.envVariable}`)
|
Logger.info(`[BinaryManager] Updating process.env.${binary.envVariable}`)
|
||||||
process.env[binary.envVariable] = binaryPath
|
process.env[binary.envVariable] = binaryPath
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Logger.info(`[BinaryManager] ${binary.name} not found`)
|
Logger.info(`[BinaryManager] ${binary.name} not found`)
|
||||||
missingBinaries.push(binary.name)
|
missingBinaries.push(binary.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user