diff --git a/remote_script.sh b/remote_script.sh index 517668b..74bdbe6 100644 --- a/remote_script.sh +++ b/remote_script.sh @@ -5,6 +5,8 @@ # example: # curl https://git.ixvd.net/raine/dotfiles/raw/branch/main/remote_script.sh | sh -git clone https://git.ixvd.net/raine/dotfiles $HOME/.dotfiles +HOME=${HOME:-/home/${USER:-$(whomai)}} + +[ -f "$HOME/.dotfiles" ] || git clone https://git.ixvd.net/raine/dotfiles $HOME/.dotfiles cd $HOME/.dotfiles ./dot a