Hyprland-dotfiles/.dev/sync.sh
Stephan Raabe 846583599f Updates
2024-02-17 17:01:13 +01:00

13 lines
445 B
Bash
Executable File

#!/bin/bash
# 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 ..."
rsync -avhp -I --exclude-from=$HOME/dotfiles-versions/$1/.dev/excludes.txt ~/dotfiles-versions/$1/ ~/dotfiles
else
echo "Folder ~/dotfiles-versions/$1 not found."
fi
else
echo "No folder specified. Please use ./sync folder"
fi