diff --git a/setup.sh b/setup.sh index f496a785..850cc7ad 100644 --- a/setup.sh +++ b/setup.sh @@ -1,14 +1,13 @@ #!/bin/bash DEST_REPO=$1 -DEST_REPO_TOKEN=$2 -FILE_PATH=$3 +FILE_PATH=$2 echo "Starting script execution..." -# Clone the destination repository -echo "Cloning the destination repository: https://github.com/$DEST_REPO.git" -git clone https://$DEST_REPO_TOKEN@github.com/$DEST_REPO.git +# Clone the destination repository using SSH +echo "Cloning the destination repository: git@github.com:$DEST_REPO.git" +git clone git@github.com:$DEST_REPO.git # Split the destination repository into owner and name IFS='/' read -ra ADDR <<< "$DEST_REPO"