From 2d644da2bc6bbfa7c951723f3deb3748cc2a997b Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 10 Jan 2025 17:31:46 +0000 Subject: [PATCH] chore: set git clone & dotfiles as optional --- dotfiles/run.sh | 2 +- git-clone/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/run.sh b/dotfiles/run.sh index 9463439..4b480f4 100644 --- a/dotfiles/run.sh +++ b/dotfiles/run.sh @@ -18,6 +18,6 @@ if [ -n "$${DOTFILES_URI// }" ]; then CODER_BIN=$(which coder) DOTFILES_USER_HOME=$(eval echo ~"$DOTFILES_USER") - sudo -u "$DOTFILES_USER" sh -c "'$CODER_BIN' dotfiles '$DOTFILES_URI' -y 2>&1 | tee '$DOTFILES_USER_HOME'/.dotfiles.log" + sudo -u "$DOTFILES_USER" sh -c "'$CODER_BIN' dotfiles '$DOTFILES_URI' -y 2>&1 | tee '$DOTFILES_USER_HOME'/.dotfiles.log || true" fi fi diff --git a/git-clone/run.sh b/git-clone/run.sh index bd80717..316a7c7 100755 --- a/git-clone/run.sh +++ b/git-clone/run.sh @@ -9,7 +9,7 @@ CLONE_PATH="$${CLONE_PATH/#\~/$${HOME}}" # Check if the variable is empty... if [ -z "$REPO_URL" ]; then echo "No repository specified!" - exit 1 + exit 0 fi # Check if the variable is empty...