diff --git a/eendoe/install-repo.sh b/eendoe/install-repo.sh index b4e2d32..f4db6f3 100755 --- a/eendoe/install-repo.sh +++ b/eendoe/install-repo.sh @@ -26,13 +26,24 @@ REPO_USER="${1:-}" REPO_PASS="${2:-}" if [ -z "$REPO_USER" ]; then - read -r -p "Gebruikersnaam voor repository [eendoe]: " INPUT_USER + if [ -t 0 ]; then + read -r -p "Gebruikersnaam voor repository [eendoe]: " INPUT_USER + elif [ -e /dev/tty ]; then + read -r -p "Gebruikersnaam voor repository [eendoe]: " INPUT_USER