refactor: explicit cd ~ before cloning
Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
@@ -214,6 +214,7 @@ function clone_moonraker() {
|
||||
### force remove existing moonraker dir and clone into fresh moonraker dir
|
||||
[[ -d ${MOONRAKER_DIR} ]] && rm -rf "${MOONRAKER_DIR}"
|
||||
|
||||
cd "${HOME}" || exit 1
|
||||
if ! git clone "${MOONRAKER_REPO}" "${MOONRAKER_DIR}"; then
|
||||
print_error "Cloning Moonraker from\n ${repo}\n failed!"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user