Skip to content

A local-first personal finance app

feat: change ROOT variable to be package root rather than bin

Tom French617f39e73c79
diff --git a/packages/desktop-electron/bin/update-client b/packages/desktop-electron/bin/update-client
index 39dc036ad9..3560b0bcf0 100755
--- a/packages/desktop-electron/bin/update-client
+++ b/packages/desktop-electron/bin/update-client
@@ -1,13 +1,13 @@
#!/bin/bash -e
-ROOT=`dirname $0`
+ROOT=`dirname $0`/..
-rm -rf ${ROOT}/../client-build
-cp -r ${ROOT}/../../desktop-client/build ${ROOT}/../client-build
+rm -rf ${ROOT}/client-build
+cp -r ${ROOT}/../desktop-client/build ${ROOT}/client-build
# Remove the embedded backend for the browser version. Will improve
# this process
-rm -rf ${ROOT}/../client-build/data
-rm -rf ${ROOT}/../client-build/*kcab.*
-rm -rf ${ROOT}/../client-build/*.wasm
-rm -rf ${ROOT}/../client-build/*.map
+rm -rf ${ROOT}/client-build/data
+rm -rf ${ROOT}/client-build/*kcab.*
+rm -rf ${ROOT}/client-build/*.wasm
+rm -rf ${ROOT}/client-build/*.map