summarylogtreecommitdiffstats
path: root/fireblocks-recovery-utility.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fireblocks-recovery-utility.sh')
-rw-r--r--fireblocks-recovery-utility.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/fireblocks-recovery-utility.sh b/fireblocks-recovery-utility.sh
index f1520e9a15ee..aacd8f895847 100644
--- a/fireblocks-recovery-utility.sh
+++ b/fireblocks-recovery-utility.sh
@@ -2,14 +2,14 @@
set -e
_APPDIR="/usr/lib/@appname@"
_ASAR="${_APPDIR}/@appasar@"
-export ELECTRON_IS_DEV=0
+export PATH="${_APPDIR}:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}"
+export ELECTRON_IS_DEV=0
export NODE_ENV=production
-export PATH="${_APPDIR}:${PATH}"
+cd "${_APPDIR}"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
- cd "${_APPDIR}"
exec electron@electronversion@ "${_ASAR}" "$@"
else
- cd "${_APPDIR}"
exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@"
-fi \ No newline at end of file
+fi
+exit \ No newline at end of file