arch-automated-installer/scripts/system-setup/dotfiles-setup.sh

20 lines
455 B
Bash
Raw Normal View History

#!/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