💥 fix(install, update): correctly check if repo is already cloned

This commit is contained in:
retrozinndev
2025-10-26 17:04:21 -03:00
parent d6c83a14d1
commit 270e1b6b6f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ if [[ "$answer" == y ]] || [[ "$skip_prompts" ]]; then
Send_log "The installer noticed that you're calling the script remotely" Send_log "The installer noticed that you're calling the script remotely"
rm -rf $repo_directory 2> /dev/null rm -rf $repo_directory 2> /dev/null
Send_log "Cloning repository in \`$repo_directory\`..." 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..." 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" stash # if there are changes, let's just stash them
git -C "$repo_directory" checkout ryo git -C "$repo_directory" checkout ryo
+1 -1
View File
@@ -69,7 +69,7 @@ if [[ "$answer" == y ]] || [[ "$skip_prompts" ]]; then
if [[ "$is_standalone" ]]; then if [[ "$is_standalone" ]]; then
Send_log "The installer noticed that you're calling the script remotely" Send_log "The installer noticed that you're calling the script remotely"
Send_log "Cloning repository in \`$repo_directory\`..." 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..." 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" stash # if there are changes, let's just stash them
git -C "$repo_directory" checkout ryo git -C "$repo_directory" checkout ryo