From 617f39e73c79871b69eb1061cece5a233d09c63e Mon Sep 17 00:00:00 2001
From: Tom French <tom@tomfren.ch>
Date: Wed, 10 Aug 2022 12:48:39 +0100
Subject: [PATCH] feat: change ROOT variable to be package root rather than bin

---
 packages/desktop-electron/bin/update-client | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/packages/desktop-electron/bin/update-client b/packages/desktop-electron/bin/update-client
index 39dc036ad..3560b0bcf 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
-- 
GitLab