Hyprland-dotfiles/.dev/sync.sh

13 lines
445 B
Bash
Raw Permalink Normal View History

2023-12-03 11:50:14 -05:00
#!/bin/bash
2023-11-22 06:01:41 -05:00
# Execute the script with ./sync version e.g., ./sync 2.5.2
if [ ! -z $1 ] ;then
if [ -d ~/dotfiles-versions/"$1" ] ;then
echo "Folder exists. Start rsync now ..."
2024-02-17 11:01:13 -05:00
rsync -avhp -I --exclude-from=$HOME/dotfiles-versions/$1/.dev/excludes.txt ~/dotfiles-versions/$1/ ~/dotfiles
2023-11-22 06:01:41 -05:00
else
echo "Folder ~/dotfiles-versions/$1 not found."
fi
else
echo "No folder specified. Please use ./sync folder"
fi