From d38a177aed728023a465cc7c9fb8ca968b424bff Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 19 Oct 2023 10:49:36 -0400 Subject: [PATCH] Handle chown not existing --- install-linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-linux.sh b/install-linux.sh index b6c6d8f..1dd4fcc 100644 --- a/install-linux.sh +++ b/install-linux.sh @@ -70,7 +70,7 @@ fi # Configure SSH ln -sf $EWCONFIG_ROOT/configs/ssh/config ~/.ssh/config chmod 644 "$HOME/.ssh/config" -chown "$USER:$USER" "$HOME/.ssh/config" +if type -p chown > /dev/null; then chown "$USER:$USER" "$HOME/.ssh/config"; fi # Configure (neo)Vim ln -sf $EWCONFIG_ROOT/configs/nvim/init.vim ~/.config/nvim/init.vim