Compare commits
1
Commits
72bb2966ec
...
ed27a09ef9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed27a09ef9 |
+14
-3
@@ -26,13 +26,24 @@ REPO_USER="${1:-}"
|
|||||||
REPO_PASS="${2:-}"
|
REPO_PASS="${2:-}"
|
||||||
|
|
||||||
if [ -z "$REPO_USER" ]; then
|
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 </dev/tty
|
||||||
|
else
|
||||||
|
INPUT_USER=""
|
||||||
|
fi
|
||||||
REPO_USER="${INPUT_USER:-eendoe}"
|
REPO_USER="${INPUT_USER:-eendoe}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REPO_PASS" ]; then
|
if [ -z "$REPO_PASS" ]; then
|
||||||
read -r -s -p "Wachtwoord voor repository ($REPO_USER): " REPO_PASS
|
if [ -t 0 ]; then
|
||||||
echo ""
|
read -r -s -p "Wachtwoord voor repository ($REPO_USER): " REPO_PASS
|
||||||
|
echo ""
|
||||||
|
elif [ -e /dev/tty ]; then
|
||||||
|
read -r -s -p "Wachtwoord voor repository ($REPO_USER): " REPO_PASS </dev/tty
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REPO_USER" ] || [ -z "$REPO_PASS" ]; then
|
if [ -z "$REPO_USER" ] || [ -z "$REPO_PASS" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user