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