diff options
Diffstat (limited to 'sync')
-rwxr-xr-x | sync | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -31,20 +31,24 @@ echo "Syncing packages" sudo pacman -Syq &>/dev/null printf "\033[0;34m" -echo "Comparing installed packages" -comm -23 <(sort packages.txt) <(pacman -Qqe | sort) | yay -Sq --needed - - -printf "\033[0;34m" -echo "Compiling local repos" -for d in ./.repos/*/; do (cd "$d" && sudo make clean install &>/dev/null); done || exit 1 +read -p "Do you want to install the packages? [yn] " -n 1 -r +if [[ $REPLY =~ ^[Yy]$ ]]; then + echo "Comparing installed packages" + comm -23 <(sort packages.txt) <(pacman -Qqe | sort) | yay -Sq --needed - +fi +echo printf "\033[0;34m" echo "Copying configs" printf "\033[0;37m" -cp -rv .config/ .local/ .lein/ .scripts/ .boilerplates/ .bash_profile .bashrc .xinitrc .Xresources "$HOME"/ +cp -rv .config/ .local/ .lein/ .scripts/ .boilerplates/ .repos/ .bash_profile .bashrc .xinitrc .Xresources "$HOME"/ sudo cp -rv .etc/* /etc/ printf "\033[0;34m" +echo "Compiling local repos" +for d in "$HOME"/.repos/*/; do (cd "$d" && sudo make clean install &>/dev/null); done || exit 1 + +printf "\033[0;34m" echo "Syncing crypto files from server" ping -q -w1 -c1 10.0.0.33 &>/dev/null && scp -rq root@10.0.0.33:/mnt/ssd/.crypto "$HOME"/ || |