refactor: explicit cd ~ before cloning
Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
@@ -30,6 +30,8 @@ function install_pgc_for_klipper() {
|
||||
dependency_check "${dep[@]}"
|
||||
|
||||
[[ -d ${PGC_DIR} ]] && rm -rf "${PGC_DIR}"
|
||||
|
||||
cd "${HOME}" || exit 1
|
||||
if ! git clone "${PGC_REPO}" "${PGC_DIR}"; then
|
||||
print_error "Cloning PrettyGCode for Klipper from\n ${PGC_REPO}\n failed!"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user