mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-25 00:11:04 +00:00
be209f1626
Change-type: patch
15 lines
551 B
Diff
15 lines
551 B
Diff
diff --git a/node_modules/mmmagic/lib/index.js b/node_modules/mmmagic/lib/index.js
|
|
index bd18a4b..a19a149 100644
|
|
--- a/node_modules/mmmagic/lib/index.js
|
|
+++ b/node_modules/mmmagic/lib/index.js
|
|
@@ -1,5 +1,8 @@
|
|
var Magic = require('../build/Release/magic');
|
|
-var fbpath = require('path').join(__dirname, '..', 'magic', 'magic');
|
|
+var path = require('path');
|
|
+var fbpath = process.pkg
|
|
+ ? path.join(path.dirname(process.execPath), 'mmmagic', 'magic')
|
|
+ : path.join(__dirname, '..', 'magic', 'magic');
|
|
Magic.setFallback(fbpath);
|
|
|
|
module.exports = {
|