Set working directory during xone installation

This commit is contained in:
Manuel Thalmann 2023-08-07 17:18:22 +02:00
parent f84728e3a0
commit 9ed5b7c74c

View file

@ -1,6 +1,8 @@
#!/bin/bash
contextRoot="$(mktemp -d)";
pushd "$contextRoot";
git clone "https://github.com/dlundqvist/xone.git" "$contextRoot";
sudo "$contextRoot/install.sh" --release;
yes "" | sudo xone-get-firmware.sh;
popd "$contextRoot";
rm -rf "$contextRoot";