diff --git a/post-install.sh b/post-install.sh index 1b549eb..e74c79d 100755 --- a/post-install.sh +++ b/post-install.sh @@ -92,10 +92,13 @@ echo "[+] Installing dotfiles..." su - ${ALMA_USER} -c ' cd && git clone https://git.dominik-roth.eu/dodox/nullpoint.git /tmp/nullpoint-dotfiles && - for file in /tmp/nullpoint-dotfiles/dotfiles/.*; do - [ -f "$file" ] && cp "$file" . 2>/dev/null || true + cd /tmp/nullpoint-dotfiles/dotfiles && + for file in .*; do + if [ -f "$file" ] && [ "$file" != "." ] && [ "$file" != ".." ]; then + cp "$file" ~/ 2>/dev/null || true + fi done && - rm -rf /tmp/nullpoint-dotfiles + cd && rm -rf /tmp/nullpoint-dotfiles ' || echo "WARNING: dotfiles installation failed" # Set up MOTD