Skip to content

Commit 5e55a58

Browse files
author
Sergey Volkov
committed
Prompt password if this options does not exist
1 parent fefb0ae commit 5e55a58

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

deploy.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
skip = false
66
user = example
7+
; remove this options and enter a password in the terminal
8+
pass = password
79
host = example.com
810
port = 21
911
path = /path/to/installation

git-deploy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,9 @@ class Config {
625625
'upload_untracked' => array()
626626
), $options);
627627

628-
$options['pass'] = self::promptPassword();
628+
if (!isset($options['pass'])) {
629+
$options['pass'] = self::promptPassword();
630+
}
629631

630632
if ($options['skip']) {
631633
continue;

0 commit comments

Comments
 (0)