Set working directory during xone installation

This commit is contained in:
Manuel Thalmann 2023-08-07 17:18:22 +02:00
parent 995c8ba61a
commit c1d1819497

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";