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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user