From 7e0ad304164a12d1f209f4009c49c0128de6924f Mon Sep 17 00:00:00 2001 From: Raine Date: Thu, 16 Nov 2023 15:52:49 +0100 Subject: [PATCH] fix: remote_script.sh --- remote_script.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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