Remove check for cloning dotfiles

This commit is contained in:
2025-06-23 00:01:14 +01:00
committed by GitHub
parent 48c8f4a88d
commit 5a2eca40b3

View File

@@ -77,9 +77,8 @@ install_gnome_extension() {
}
# Clone Dotfiles if not already present
if [ $W_MAIN = "install" ]; then
cd "$HOME/dotfiles"
if [ "$(pwd)" != "$HOME/dotfiles" ]; then
cd "$HOME/dotfiles"
if [ "$(pwd)" != "$HOME/dotfiles" ]; then
echo "${YELLOW}Cloning dotfiles repository...${NC}"
sudo apt update
sudo apt install -y git
@@ -89,7 +88,7 @@ if [ $W_MAIN = "install" ]; then
fi
cd dotfiles || exit
echo "${GREEN}dotfiles repository cloned successfully.${NC}"
else
else
echo "${YELLOW}Updating dotfiles repository...${NC}"
pull_output=$(git pull)
echo "$pull_output"
@@ -97,11 +96,9 @@ if [ $W_MAIN = "install" ]; then
echo "${YELLOW}Changes detected. Re-running script...${NC}"
exec "$0" "$@"
fi
fi
else
cd "$HOME/dotfiles" || exit
fi
mkdir -p "$HOME/dotfiles/logs"
if [ $W_MAIN = "install" ]; then