chore: set git clone & dotfiles as optional
This commit is contained in:
@@ -18,6 +18,6 @@ if [ -n "$${DOTFILES_URI// }" ]; then
|
|||||||
|
|
||||||
CODER_BIN=$(which coder)
|
CODER_BIN=$(which coder)
|
||||||
DOTFILES_USER_HOME=$(eval echo ~"$DOTFILES_USER")
|
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
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ CLONE_PATH="$${CLONE_PATH/#\~/$${HOME}}"
|
|||||||
# Check if the variable is empty...
|
# Check if the variable is empty...
|
||||||
if [ -z "$REPO_URL" ]; then
|
if [ -z "$REPO_URL" ]; then
|
||||||
echo "No repository specified!"
|
echo "No repository specified!"
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if the variable is empty...
|
# Check if the variable is empty...
|
||||||
|
|||||||
Reference in New Issue
Block a user