From 270e1b6b6f04f1cc9c20b7942c5b62de9c12536e Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Sun, 26 Oct 2025 17:04:21 -0300 Subject: [PATCH] :boom: fix(install, update): correctly check if repo is already cloned --- install.sh | 2 +- update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6340bb4..82fa9d2 100755 --- a/install.sh +++ b/install.sh @@ -55,7 +55,7 @@ if [[ "$answer" == y ]] || [[ "$skip_prompts" ]]; then Send_log "The installer noticed that you're calling the script remotely" rm -rf $repo_directory 2> /dev/null Send_log "Cloning repository in \`$repo_directory\`..." - if [[ -d $repo_directory ]]; then + if [[ -d $repo_directory/.git ]]; then Send_log "repo is already cloned! let's just fetch the latest changes..." git -C "$repo_directory" stash # if there are changes, let's just stash them git -C "$repo_directory" checkout ryo diff --git a/update.sh b/update.sh index 339e724..7d48d69 100755 --- a/update.sh +++ b/update.sh @@ -69,7 +69,7 @@ if [[ "$answer" == y ]] || [[ "$skip_prompts" ]]; then if [[ "$is_standalone" ]]; then Send_log "The installer noticed that you're calling the script remotely" Send_log "Cloning repository in \`$repo_directory\`..." - if [[ -d $repo_directory ]]; then + if [[ -d $repo_directory/.git ]]; then Send_log "repo is already cloned! let's just fetch the latest changes..." git -C "$repo_directory" stash # if there are changes, let's just stash them git -C "$repo_directory" checkout ryo