refactor: explicit cd ~ before cloning

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-05-28 22:40:03 +02:00
parent c97dc67eb3
commit 6c99caf851
6 changed files with 8 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ function klipperscreen_setup() {
[[ -d ${KLIPPERSCREEN_DIR} ]] && rm -rf "${KLIPPERSCREEN_DIR}"
# clone into fresh KlipperScreen dir
cd "${HOME}" || exit 1
if ! git clone "${KLIPPERSCREEN_REPO}" "${KLIPPERSCREEN_DIR}"; then
print_error "Cloning KlipperScreen from\n ${KLIPPERSCREEN_REPO}\n failed!"
exit 1