arch-automated-installer/scripts/system-setup/dotfiles-setup.sh
2024-06-27 15:24:32 +08:00

20 lines
455 B
Bash
Executable file

#!/bin/bash
home_dir="/home/""$(ls /home/)"
if [[ -d $home_dir ]]; then
echo "Has valid home directory"
while [[ true ]]; do
if [[ -d $home_dir/Repos ]]; then
echo "Has valid Repos directory"
read -p "Enter your dotfiles repo: " repo
echo "git clone $repo $home_dir/Repos"
break
else
mkdir $home_dir/Repos
fi
done
else
echo "no valid home directory"
fi