From 841e9d7d7615f6615b50fe7cfe0fc32f49ef051d Mon Sep 17 00:00:00 2001 From: Robin Mordasiewicz Date: Sat, 8 Jun 2024 00:55:58 -0400 Subject: [PATCH] fix: #6 silence the gh auth output --- src/container-dotfiles/devcontainer-feature.json | 2 +- src/container-dotfiles/install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/container-dotfiles/devcontainer-feature.json b/src/container-dotfiles/devcontainer-feature.json index bad7350..aed00b3 100644 --- a/src/container-dotfiles/devcontainer-feature.json +++ b/src/container-dotfiles/devcontainer-feature.json @@ -16,5 +16,5 @@ "id": "container-dotfiles", "installsAfter": [], "name": "Container Dotfiles", - "version": "0.0.49" + "version": "0.0.50" } diff --git a/src/container-dotfiles/install.sh b/src/container-dotfiles/install.sh index bfef1b5..b75d1d3 100755 --- a/src/container-dotfiles/install.sh +++ b/src/container-dotfiles/install.sh @@ -37,5 +37,5 @@ if command -v /opt/conda/bin/conda &>/dev/null; then su -l "${_REMOTE_USER}" -c "/opt/conda/bin/conda config --set changeps1 False" fi -su -l "${_REMOTE_USER}" -c "echo 'gh auth status || gh auth login' >> ${_REMOTE_USER_HOME}/.bashrc" -su -l "${_REMOTE_USER}" -c "echo 'gh auth status || gh auth login' >> ${_REMOTE_USER_HOME}/.zshrc" +su -l "${_REMOTE_USER}" -c "echo 'gh auth status > /dev/null 2>&1 && echo 'gh auth logged in' || gh auth login >> ${_REMOTE_USER_HOME}/.bashrc" +su -l "${_REMOTE_USER}" -c "echo 'gh auth status > /dev/null 2>&1 && echo 'gh auth logged in' || gh auth login >> ${_REMOTE_USER_HOME}/.zshrc"