From 0113061bccc98d5b622c212a89caae7c7f01d7d9 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Sun, 14 Apr 2024 07:38:32 +0000 Subject: [PATCH] Fix git clone syntax in projects directory setup --- opensuse-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opensuse-setup.sh b/opensuse-setup.sh index 7ed90ab..64bcf4b 100755 --- a/opensuse-setup.sh +++ b/opensuse-setup.sh @@ -557,7 +557,7 @@ done echo "Setting up Projects folder..." -# Ensure ${HOME}/Projects exists and set it as the working directory +# Ensure ${HOME}/Projects exists PROJECTS_DIR=${HOME}/Projects if [ ! -d ${PROJECTS_DIR} ]; then mkdir ${PROJECTS_DIR} @@ -567,7 +567,7 @@ fi # Perform a blobless clone of all public repos at git.tty.dog API_URL="https://git.tty.dog/api/v1/repos/search" for CLONE_URL in $(curl -s "${API_URL}?uid=1" | jq -r ".data.[].clone_url"); do - git clone --no-checkout --filter=blob:none "${CLONE_URL}" ${PROJECTS_DIR} + git -C ${PROJECTS_DIR} clone --no-checkout --filter=blob:none "${CLONE_URL}" done ########################################