diff --git a/install.sh b/install.sh index b4e2d32..f4db6f3 100755 --- a/install.sh +++ b/install.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