diff --git a/install_guh.sh b/install_guh.sh index 2315d22..bf2ea08 100644 --- a/install_guh.sh +++ b/install_guh.sh @@ -1,13 +1,6 @@ #!/bin/bash echo "This will install the compiled local 'guh' binary to '~/.local/bin' directory." -read -p "Do you want to continue? [y/n]: " choice - -if [ "$choice" != "Y" ] && [ "$choice" != "y" ]; then - echo "Installation cancelled." - exit 0 -fi - echo "Installing..." echo diff --git a/src/cmd/create/repo.go b/src/cmd/create/repo.go index 23fbb2d..df76973 100644 --- a/src/cmd/create/repo.go +++ b/src/cmd/create/repo.go @@ -19,7 +19,9 @@ var linkRepoCmd = &cobra.Command{ utils.RunGit(false, "remote", "get-url", "origin") return nil default: - utils.RunGitSequence(false, []string{"remote", "set-url", "origin", args[0]}) + utils.RunGit(true, "remote", "remove", "origin") + utils.RunGit(false, "remote", "add", "origin", args[0]) + fmt.Printf("Linked repository to: %s\n", args[0]) return nil }